[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yet another Map question
From: |
Marcus G. Daniels |
Subject: |
Re: yet another Map question |
Date: |
22 Oct 2000 10:45:09 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "KG" == Ken Gosier <address@hidden> writes:
KG> While I'm iterating through the Map: Say I don't care about
KG> modifying the contents of the keys, but I do need to access those
KG> contents. May I then just use the format:
KG> for (val=[mapIndex next: key]; [mapIndex getLoc]==Member;
KG> val=[mapIndex next: key])
It's not that *you* want to modify `key', it's that `next:' needs a way
to return it.
In order to return a value, `next:' can either say "return foo", or
you can pass a pointer to (your) `foo' so that it can write to it.
But "return key" isn't an option for the `next:' interface, since it
is already returning the value associated with `key'.
==================================
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.