Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 244 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 244 Bytes

Min and max of three values

Write a function with type:

minmax3 : 'a -> 'a -> 'a -> 'a * 'a

such that che minmax3 a b c evaluates to a pair whose left element is the minimum of a, b, c, while the right element is the maximum.