← Back to index
|
Original Bugzilla link
Bug 24589 – [std.sreaching] take functions seem to be missing range overload/version
Status
NEW
Severity
enhancement
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-06-05T22:35:24Z
Last change time
2024-12-01T16:42:44Z
Assigned to
No Owner
Creator
crazymonkyyy
Moved to GitHub: phobos#9873 →
Comments
Comment #0
by crazymonkyyy — 2024-06-05T22:35:24Z
``` import std; auto takeUntil(R)(R base,R other){ static struct Result{ R base; R other; alias base this; bool empty()=>base==other; } return Result(base,other); } unittest{ iota(5).takeUntil(iota(5).drop(3)).writeln; } ```
Comment #1
by robert.schadek — 2024-12-01T16:42:44Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/9873
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB