Rust-like collect in D

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 6 09:47:43 PDT 2016


On Thursday, 6 October 2016 at 16:14:33 UTC, Dicebot wrote:
> If an entity (i.e. container) implements OutputRange API, you 
> can already do it:
>
> 0.iota(n).copy(container);

Thanks, that's what I was looking for.


More information about the Digitalmars-d-learn mailing list