Stupid little iota of an idea

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Feb 12 18:19:33 PST 2011


    foreach (step; steps)
    {
        writeln( [iota(min, max, step), iota(min, max, step+1)] );
        writeln( [[min..max : step], [min..max : step+1]] );

        max += step;
    }

Sorry for spamming. :)

I'm getting more and more convinced to join the iota camp. The new
syntax barely saves any characters, and is potentially confusing.


More information about the Digitalmars-d mailing list