[Issue 4535] std.range could have a takeWhile!pred(range) function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 11 01:40:39 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=4535

--- Comment #6 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to timon.gehr from comment #5)
> This enhancement requests is not "INVALID".

Closing it as "won't fix" would be more appropriate. We already have until,
which does what takeWhile would do - it just has an arguably worse name. Is
there something about until that does not fulfill what takeWhile would do?
While I don't think that it existed when this issue was opened, there is now an
overload for until that does not take a sentinel and AFAIK does exactly what
takeWhile would do.

--


More information about the Digitalmars-d-bugs mailing list