Function to add to Data.List

Evan Laforge qdunkan at gmail.com
Sun Apr 6 23:06:32 UTC 2014


"On" has some precedent in Function.on, i.e. sortOn k = sortBy (compare
`on` k)

Of course that's the "cheap key" version, I guess you're discussing adding
the expensive key version.
On Apr 6, 2014 1:34 PM, <johnw at newartisans.com> wrote:

> >>>>> Niklas Haas <haskell at nand.wakku.to> writes:
>
> >> Oh yes, 'sortOn' is a really nice name. :)
>
> > Huh, that name just reminded me of GHC.Exts.sortWith:
>
> Either of the names sortOn, or sortWith, sound good.  I think I prefer
> sortWith.
>
> John
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140406/37d9bce5/attachment.html>


More information about the Libraries mailing list