Function to add to Data.List

Artyom Kazak yom at artyom.me
Sat Apr 5 22:51:50 UTC 2014



On 04/06/2014 02:33 AM, Henning Thielemann wrote:
> Not exactly, because sortByKey memorizes the results of 'f' and (sortBy
> . comparing) recomputes 'f' all the time.

Racket language (PLT Scheme) has both variants, and I think both are 
needed – e.g. `length` of strings should probably be memorized, while 
something like `snd` or `negate` shouldn't.


More information about the Libraries mailing list