Playing with ranges and ufcs

Andrea Fontana nospam at example.com
Thu Feb 28 01:25:26 PST 2013


On Wednesday, 27 February 2013 at 23:43:49 UTC, bearophile wrote:
> void main() {
>     auto a = [0,1,2,3,4,5,6,7,8,9][5 .. 2];
> }

I tried it too, hoping for something like
[5,4,3]

or at least
[4,3,2] (== [0,1,2,3,4,5,6,7,8,9][2..5].reverse)



More information about the Digitalmars-d-learn mailing list