Range Construction Pattern
Tobias Pankrath
tobias at pankrath.net
Sat Feb 22 05:38:04 PST 2014
> Great!
>
> See also:
> https://stackoverflow.com/questions/21954381/range-construction-pattern/21954416?noredirect=1#21954416
I don't think that 'create' is a good name for a function, that
basically lazily evaluates another function foo n times. Maybe
std.range.repeat should have an overload that takes an alias to a
callable, so you don't need this rather awkward use of iota.
More information about the Digitalmars-d-learn
mailing list