Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Alphebetizing Lists in Scheme

Name: Anonymous 2012-10-24 2:06

Anyone have an idea on how I could do this?

Name: Anonymous 2012-10-24 3:07

sort' :: Ord a => [a] -> [a]
sort' [] = []
sort' (x:xs) = (sort' (filter (<x) xs)) : x : (sort' (filter (>=x) xs))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List