[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>
wrote:
> sortOnLab = sortBy (\(l, _) (m, _) -> compare l m)
The following does the same:
sortOnLab = sort
--
Met vriendelijke groet,
Henk-Jan van Tuyl
--
http://Van.Tuyl.eu/
--
Using Opera's revolutionary e-mail client:
https://secure.bmtmicro.com/opera/buy-opera.html?AID=789433
More information about the Haskell-Cafe
mailing list