Pass range to a function

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 28 14:08:11 PDT 2017


On Thursday, 27 July 2017 at 21:16:03 UTC, Chris wrote:
> In C#, it'd be `IEnumerable<string>`. I'd rather not do a 
> to-array on the sequence, if possible. (e.g. It'd be nice to 
> just pass the lazy sequence into my categorize function.)

This comparison between Linq and D ranges might help you in the 
future too:

https://github.com/wilzbach/linq


More information about the Digitalmars-d-learn mailing list