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

# Re: [WISH LIST] Multple verb calls.. (read on)

- Date: Fri, 4 Oct 1996 08:04:24 PDT
- From:
- CC: MOO Cows Mailing List <moo-cows@parc.xerox.com>
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <Pine.GSO.3.93.961004094630.5123A-100000@net2.netacc.net>

    Some Dude wrote:
    >
    > I dunno if this would even be possible, but what I'm thinking is this:
    >
    > Let's say you have a list of objnmums.  And you need to call a verb from
    > each object.
    > Just for the sake of this message, we'll say it's {#99,#100,#101}.
    > Now, instead of sayin:
    >
    > for x in ({#99,#100,#101})
    >   x:tell("Whatever.");
    > endfor
    >
    > What if all we had to do was say:
    >
    > {#99,#101,#100}:tell("Whatever.");
    >
    > And the server would automatically read it like the first example?
    > Just a thought..?

    Have a look at $list_utils:map_verb() in Lambdacore.

    $list_utils:map_verb({#99,#101,#100},"tell","Whatever.");

    If the verb returns a result, then :map_verb() returns a list of the
    results from each verb call.

    It also has :map_prop() and :map_arg() which do other similar multiobject
    things.

Follow-Ups:

- Re: [WISH LIST] Multple verb calls.. (read on)

- From: Stacey Greenstein <sg8734@acs.brockport.edu>

References:

- [WISH LIST] Multple verb calls.. (read on)

- From: Some Dude <bastian@net2.netacc.net>

- Prev: [WISH LIST] Multple verb calls.. (read on)
- Next: Re: [WISH LIST] Multple verb calls.. (read on)
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index