Is there something like a consuming take?

berni someone at somewhere.com
Tue Jul 9 17:28:38 UTC 2019


Hurray, it works! :-)

https://run.dlang.io/is/2GMq34

I have to use classes to avoid copying when arguments are passed 
to a function. (And yes, there should of course be much more 
checks, especially when there are to few elements in the original 
range. And it could be speed improved and so on... I wanted to 
keep it simple.)




More information about the Digitalmars-d-learn mailing list