Sorting algorithms/Heapsort: Difference between revisions
Content added Content deleted
Corpsmoderne (talk | contribs) |
|||
Line 3,008: | Line 3,008: | ||
toList (Node x l r) = x : toList (merge l r) |
toList (Node x l r) = x : toList (merge l r) |
||
heapSort :: Ord a => [a] -> [a] |
|||
heapSort = toList . fromList</syntaxhighlight> |
|||
e.g |
e.g |