[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using forEach:
From: |
Ken Cline |
Subject: |
Re: Using forEach: |
Date: |
Tue, 7 Sep 1999 03:56:58 -0400 (EDT) |
On Tue, 7 Sep 1999, Darren Schreiber wrote:
>
> In the first step of the algorithm I am building, I want to instruct all of
> the agents to do the method findClosest neighbor. Currently, I am using
> the following:
>
> for (i=0; i<listLength; i++) {
> [[availableList atOffset: i] findClosestNeighbor: availableList];
> }
>
> I saw this type of construct in an example that Benedikt used.
>
> [availableList forEach: M(findClosestNeighbor: availableList)];
>
> But, I am getting a parse error before ). How can I send the list to the
> group of agents and instruct them to execute the command?
[availableList forEach: M(findClosestNeighbor:) : availableList];
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Re: 1st Problem Installing Swarm2.0 in LinuxPPC R5, (continued)
- Re: 1st Problem Installing Swarm2.0 in LinuxPPC R5, Marcus G. Daniels, 1999/09/04
- 2nd Problem Installing Swarm2.0 in LinuxPPC R5, Darren Schreiber, 1999/09/05
- Re: 2nd Problem Installing Swarm2.0 in LinuxPPC R5, Marcus G. Daniels, 1999/09/05
- 3rd Problem Installing Swarm2.0 in LinuxPPC R5, Darren Schreiber, 1999/09/05
- Re: 3rd Problem Installing Swarm2.0 in LinuxPPC R5, Marcus G. Daniels, 1999/09/05
- 4th Problem Installing Swarm2.0 in LinuxPPC R5, Darren Schreiber, 1999/09/06
- Re: 4th Problem Installing Swarm2.0 in LinuxPPC R5, Marcus G. Daniels, 1999/09/06
- Re: 4th Problem Installing Swarm2.0 in LinuxPPC R5, Darren Schreiber, 1999/09/07
- Using forEach:, Darren Schreiber, 1999/09/07
- Re: Using forEach:, Norberto Eiji Nawa(0.3.31), 1999/09/07
- Re: Using forEach:,
Ken Cline <=
- Re: 4th Problem Installing Swarm2.0 in LinuxPPC R5, Marcus G. Daniels, 1999/09/07
- return type for a method parameter & assigning probe buttons, William S. Shu, 1999/09/07
- Re: return type for a method parameter & assigning probe buttons, Marcus G. Daniels, 1999/09/07
- Re: return type for a method parameter & assigning probe buttons, William S. Shu, 1999/09/07
- [no subject], DARREN MATTHEW SCHREIBER, 1999/09/07
- Re: none, Marcus G. Daniels, 1999/09/07
- Dendogram, Darren Schreiber, 1999/09/08
- Re: Dendogram, Marcus G. Daniels, 1999/09/08
- Display direction, Jayshree Sarma, 1999/09/08
- Re: Display direction, Marcus G. Daniels, 1999/09/08