Static Length Propagation of Ranges
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Oct 19 13:10:04 PDT 2016
On Wednesday, 19 October 2016 at 19:39:46 UTC, Nordlöw wrote:
> On Wednesday, 19 October 2016 at 19:01:50 UTC, Meta wrote:
>> https://goo.gl/t9m3YK
>>
>> I'm actually pretty impressed that this kind of code can be
>> written in D.
>
> Thanks! Add at
>
> https://github.com/nordlow/phobos-next/blob/master/src/algorithm_ex.d#L2234
I would add this: not sure if it's what you're intending or not,
but as `in` expands to `const scope` and the semantics of scope
will probably be changing soon (or more accurately, actually
implemented), you may want to just go with `const` instead.
More information about the Digitalmars-d-learn
mailing list