swarm-support
[Top][All Lists]
Advanced

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

Re: Map


From: Marcus G. Daniels
Subject: Re: Map
Date: Thu, 8 Apr 1999 15:24:38 -0600 (MDT)

LM> I am trying out the Map collection class but find the key-comparison
LM> is "object-equality" as opposed to "value-equality".

To do compares by value, either a custom compare function or a
`compare:' method (for all potential members) must be provided.

LM> I am trying to have a "randomly accessible" list of swarm objects.

If by "randomly accessible" you don't mean by integer, then Map is
the way to go; if the keys are integers and sequential (or dense),
then an Array will be more efficient.  Note that the Map is not a hash
table -- searching is required.

                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]