Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: hash questions

From: holger:rebol at: 8-Jan-2002 12:47

On Tue, Jan 08, 2002 at 12:26:24PM -0800, Larry Palmiter wrote:
> Hi David, > > Joel has already given an excellent overview of using the hash! datatype. I > just want to mention an additional issue with the hash! type. > > AFAIK, Only strings and integers are hashed to provide fast search. So for a > block which contains consecutive key-value pairs, converting the block to a > hash will be a benefit only when the keys are either integers or strings. > Does anyone know if other REBOL datatypes can be hashed?
string, issue, binary, image, file, email, url, tag, word, set-word, get-word, lit-word, refinement, logic, integer, char, decimal, money, time, date, tuple, pair, object. A lot more than just integers and strings :). -- Holger Kruse [holger--rebol--com]