MOO-cows Mailing List Archive
Re: List operations (Was: More LPMOO stuff)
On Sat, 19 Aug 1995, Kai Storbeck wrote:
> Why not imediate make the variable RANGE possible, so you can put a range
> in a variable and use it:
> some = [1..($/2)];
> secondsome = [($/2)..$];
> And then do operAtions on both lists...
> Till now there is no possibility to put a range in a variable or property.
Just a couple of things.. I think what you're trying to say is:
some = list[1..($/2)];
secondsome = list[($/2)..$];
Also, depending on the application, you'd use:
secondsome = list[(($/2)+1)..$];
Subject Index |