Issue 24589 - [std.sreaching] take functions seem to be missing range overload/version
Summary: [std.sreaching] take functions seem to be missing range overload/version
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 enhancement
Assignee: No Owner
URL: http://dlang.org/phobos/
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-05 22:35 UTC by crazymonkyyy
Modified: 2024-12-01 16:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description crazymonkyyy 2024-06-05 22:35:24 UTC
```
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 dlangBugzillaToGithub 2024-12-01 16:42:44 UTC
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