
13 Feb
2006
13 Feb
'06
6:37 a.m.
jamie.edwards:
I have 3 integers, a b c that I want to pass to a function, and I want the function to return the 3 integers sorted, from largest to smallest - any idea how to do this?
Prelude> let sort3 x y z = List.sort [x,y,z] Prelude> sort3 8 2 0 [0,2,8] Cheers, Don