``` 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; } ```
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