[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remove all from a List
From: |
Rick Riolo |
Subject: |
Re: remove all from a List |
Date: |
Sat, 3 Feb 1996 15:16:16 -0500 (EST) |
Here is how I check to see if the superiors List exists,
and if it does, re-start it with no members:
if ( superiors )
[superiors drop];
superiors = [List create: xZone];
There may be a way to [superiors deleteAll] or some such,
but I don't know how to do it, and haven't been
able to find it in the swarm/support/collections/*.h files.
- r
Rick Riolo address@hidden
Program for Study of Complex Systems (PSCS)
1061 Randall Lab University of Michigan
Ann Arbor MI 48109-1120
http://pscs.physics.lsa.umich.edu/rlr-home.html
On Sat, 3 Feb 1996, John Carnahan wrote:
> Date: Sat, 3 Feb 1996 11:22:38 -0800 (PST)
> From: John Carnahan <address@hidden>
> To: swarm support <address@hidden>
> Subject: remove all from a List
>
> To all,
>
> Does anyone know an easy way to drop all members from swarm List object?
> It would seem strange to have to do it by iterating and using
> removeFirst. In the apps/grid directory of the recent distribution there
> seemed to be some interesting calls that might be appropriate but I had a
> difficult time figuring what was happening in some of the grid*.m files.
>
> Later,
>
> John Carnahan
> --Graduate Student. Dept. of Biology UCLA --
> --(310) 206-4079 --
>
>
>