Question: In ML Exercise 4 Write a function min3 of type int * int * int -> int that returns the smallest of three integers. Exercise

In ML

In ML Exercise 4 Write a function min3 of type int *

Exercise 4 Write a function min3 of type int * int * int -> int that returns the smallest of three integers. Exercise 5 Write a function reds of type 'a * 'b.' -> 'a * c that converts a tuple with three elements into one with two by eliminating the second element Exercise 6 Write a function thirds of type string -> char that returns the third character of a string. Your function need not behave well on strings with lengths less than 3. Exercise 7 Write a function eyelel of type 'a list -> 'a list whose output list is the same as the input list, but with the first element of the list moved to the end. For example, cyclei (1,2,3,4) should return (2,3,4,1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!