Guest User

Untitled

a guest
Mar 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. module SelectionSort where
  2.  
  3. import Data.List
  4.  
  5. selSort :: (Ord a) => [a] -> [a]
  6. selSort [] = []
  7. selSort xs = let x = minimum xs in (x:) . selSort . delete x $ xs
Add Comment
Please, Sign In to add comment