That would be precisely what ruby does. It's
ary at: (1 to: 3) vs. ary from: 1 to: 3. Right there, the second one looks more useful. But, the first thing leads to beautiful code in Matlab and Mathematica when dealing with vectors and matrices. So it may well be worth it. Cheers, Niko On Mon, Jun 7, 2010 at 9:30 PM, Hilaire Fernandes <[email protected]> wrote: > Niko Schwarz a écrit : > >> Just to put something on the table, how about: >> >> (ary at: 1, -2) > > Or #at: could accept an interval as argument > > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41 076 235 8683 _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
