# List operations (Was: More LPMOO stuff)

COLIN@uncvx1.oit.unc.edu (COLIN@uncvx1.oit.unc.edu)
Sat, 19 Aug 1995 18:26:14 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    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)..$];

    -Colin