Question: Define mylist type that is the same as the one on page 172 of the textbook. Define a function prod that returns the product of


Define mylist type that is the same as the one on page 172 of the textbook. Define a function prod that returns the product of all integers in a mylist of integers. (refer to problem Exercise 6 on page 178) Write a function append of type 'a mylist -> 'a mylist ->'a mylist that takes two mylist values, a and b, and return a mylist contains all the values in a followed by all the values in b. (refer to Exercise 8 on page 178) Write a function reverse of type 'a list->'a list that takes a mylist x and return a mylist of all elements of x, in a reverse order. (refer to Exercise 7on page 178) 1. 2. 3. 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
