Is there something like a consuming take?

Adam D. Ruppe destructionator at gmail.com
Sat Jul 6 18:58:52 UTC 2019


On Saturday, 6 July 2019 at 18:17:26 UTC, Jonathan M Davis wrote:
> take _always_ consumes the range that it's given

not if it hasSlicing. see 
http://dpldocs.info/experimental-docs/source/std.range.d.html#L2015

but yeah otherwise i agree with you


More information about the Digitalmars-d-learn mailing list