[Haskell-cafe] What is the best way to preserve the order of a list

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Nov 1 14:47:34 EST 2006

On Wed, 01 Nov 2006 10:29:18 +0100, Stefan Holdermans <stefan at cs.uu.nl>  

>        sortOnLab   = sortBy (\(l, _) (m, _) -> compare l m)

The following does the same:
         sortOnLab   = sort

Met vriendelijke groet,
Henk-Jan van Tuyl


Using Opera's revolutionary e-mail client:

More information about the Haskell-Cafe mailing list