[Haskell-cafe] Tuesday Morning Games (was: Friday Afternoon
Play:) The Burrows Wheeler Transformation
Matthias Fischmann
fis at wiwi.hu-berlin.de
Tue Nov 21 06:26:25 EST 2006
On Tue, Nov 21, 2006 at 09:53:09AM +0100, Ketil Malde wrote:
> sortBy ((. tail . fst) . compare . tail . fst)
this would actually be a nice thing to have in the standard libraries:
sortOn :: (Ord b) => (a -> b) -> [a] -> [a]
sortOn f = sortBy $ (.f) . compare . f
kibitzing (:
matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061121/f269fd0e/attachment.bin
More information about the Haskell-Cafe
mailing list