Function to add to Data.List
John Lato
jwlato at gmail.com
Wed Apr 9 23:39:37 UTC 2014
+1 regardless of name
-1 for adding RULEs
I think the documentation should note how this function differs from
'sortBy (comparing f)' (apologies if this has already been discussed, I
don't see it).
On Sun, Apr 6, 2014 at 6:02 PM, Edward Kmett <ekmett at gmail.com> wrote:
> There is some precedent for 'sortOn' as the naming convention should we
> choose to go ahead with it.
>
> http://lukepalmer.wordpress.com/2009/07/01/on-the-by-functions/
>
> Having some mechanism by which we can explicitly request the Schwartzian
> transform like that as opposed to 'element by element' By functions strikes
> me personally as a good idea and sufficiently non-trivial to pass the
> "Fairbairn threshold" in my book.
>
> +1 from me.
>
> -Edward
>
>
> On Sun, Apr 6, 2014 at 4: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
>>
>
>
> _______________________________________________
> 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/20140409/e5b379f3/attachment.html>
More information about the Libraries
mailing list