Rust-like collect in D

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 13 07:45:50 PDT 2016


On Thursday, 13 October 2016 at 10:00:56 UTC, Nordlöw wrote:
> For instance, we can use `if (!isInfinite!Range)` to forbid 
> collecting values from an infinite `Range`. Is this checking 
> done? That is
>
>     `0.iota.make!Array`
>
> should not be allowed.

https://github.com/dlang/phobos/pull/4860


More information about the Digitalmars-d-learn mailing list