| Next | Atypical Types | 64 |
sort [] = []
sort ls = merge (sort p) (sort q)
where (p, q) = split ls
If we ask Haskell for the type of sort, it says:
sort :: (Ord a) => [t] -> [a]
Huh??
| Next | ![]() |
Copyright © 1999,2008 Mark Dominus |