On 4/30/14, 5:58 AM, Andrej Mitrovic via Digitalmars-d wrote:
On 4/30/14, Andrei Alexandrescu via Digitalmars-d
<[email protected]> wrote:
On 4/29/14, 11:08 AM, bearophile wrote:
In Phobos there are awkward names like walkLength
Love it. -- Andrei
std.algorithm.count also works with any input range, they can use that
if they don't like walkLength. Unless it has some limitations? I can't
think of any.
Yah, they overlap in functionality but only somewhat. walkLength is O(1)
on ranges with length, and it allows a convenient "up to" parameter.
Andrei