Stupid little iota of an idea

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Feb 12 03:26:25 PST 2011


On 2/12/11 5:02 AM, bearophile wrote:
> Jonathan M Davis:
>
>> interval is slightly better, but as you mention, the step value muddles that
>> abstraction.
>
> It's not muddled enough to make it worse than iota(). "iota" has nearly no relation with its purpose in Phobos.
>
>
>> genSequence is pretty much the only
>> thing that I've been able to think of that I like at all,
>
> sequence(10,20,2) is another option, as long as "interval".

Taken, see std.range.sequence.

Andrei



More information about the Digitalmars-d mailing list