blob: ebd7533c918fd52f98522b9fe9c7a6db00010684 [file] [log] [blame] [raw]
module test
import StdEnv
qsort :: [Int] -> [Int]
qsort [] = []
qsort [p:l] = (qsort [x \\ x<-l | x<p])
++[p]
++(qsort [x \\ x<-l | x>=p])
Start :: [Int]
Start = qsort [3,5,1,4,2]