[Prev][Next][Index][Thread]

# Re: List operations (Was: More LPMOO stuff)

- Date: Sat, 19 Aug 1995 18:26:14 PDT
- From:
- Cc: moo-cows@parc.xerox.com
- Content-transfer-encoding: 7BIT
- Content-type: TEXT/PLAIN; charset=US-ASCII
- In-reply-to: <Pine.SOL.3.91.950820013823.6068A-100000@alibaba.dds.nl>

    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

References:

- Re: List operations (Was: More LPMOO stuff)

- From: Kai Storbeck <kais@dds.nl>

- Prev: Re: List operations (Was: More LPMOO stuff)
- Next: Re: List operations: (reverse range) (SERVER mods)
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index