std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]
Stanislav Blinov
stanislav.blinov at gmail.com
Sat Jun 20 12:42:01 UTC 2020
On Saturday, 20 June 2020 at 10:43:41 UTC, Paul Backus wrote:
> Also, switch from `void popFront()` to `typeof(this) rest`, so
> that we can have `const` and `immutable` ranges.
*Switch* is probably too restrictive. For a given range a
`popFront` may be more efficient than a `range = range.rest`.
Making `rest` a valid range primitive though, and using where
appropriate - that'd be awesome.
More information about the Digitalmars-d
mailing list