On 4/14/11 3:00 PM, David Nadlinger wrote:
On 4/14/11 9:38 PM, Gerrit Wichert wrote:
Am 13.04.2011 22:38, schrieb Andrei Alexandrescu:
I'm quite excited about the new look of std (right now realized only
by
http://d-programming-language.org/phobos-prerelease/std_algorithm.html).

I just had a look and stumbled over the short description of group:

<http://d-programming-language.org/phobos-prerelease/std_algorithm.html#group>

group([5, 2, 2, 3, 3]) returns a range containing the tuples tuple(5,
1), tuple(5, 1), tuple(2, 2), and tuple(3, 2).

there seems to be one 'touple(5, 1)' too much.

This is already fixed in Git, but Andrei apparently didn't get around to
update the build on the website – thanks anyway.

David

BTW there is a proposal to change group to yield a range of ranges instead of a range of tuples.

Do you folks estimate this could cause significant harm to existing code?


Thanks,

Andrei

Reply via email to