Playing with ranges and ufcs

Andrea Fontana nospam at example.com
Wed Feb 27 14:32:07 PST 2013


This command:

writeln(iota(10).cycle()[5..2].take(4));

print:

[5, 6, 7, 8]


Shouldn't [5..2] slice throw a compile/runtime error?


More information about the Digitalmars-d-learn mailing list