Generic Data.List.partition

Henning Thielemann lemming at henning-thielemann.de
Thu Oct 20 19:18:08 UTC 2016


On Thu, 20 Oct 2016, evan at evan-borden.com wrote:

> I've given the performance hypothesis a test and it seems that a generic implementation outperforms the list
> implementation. I'm not terribly sure why this is the case, but I also haven't dumped core.
> 
> Implementation and bench: https://github.com/eborden/partition

I do not propose to add this to 'base', but if you are after a generic 
implementation why is the input container type the same as the output type 
(both 't')? Why not using Alternative.<|> instead of Monoid.<> ?


More information about the Libraries mailing list