On Fri, Jul 2, 2010 at 12:44 PM, Andrei Alexandrescu <[email protected]>wrote:

> Working around that would mess much of the elegance of std.sort, sigh. The
> nice thing is that sort reuses partition instead of writing a dedicated
> version of it (as I had in my implementation for a while). I was quite glad
> I'd pulled that off.
>
> Andrei
>

Couldn't you just put in a second version of std.algorithm.partition that
takes a second argument in addition to pred, similar to what you did for
std.algorithm.count()?
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to