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?
-Larry
----- Original Message -----
From: "David Hawley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 9:16 PM
Subject: [REBOL] Re: hash questions
> I come from the perl, tcl world where hashes aremoe like array indicies.
> In rebol, it seems that I can build a hash list, of some arbitray
> values, but cannot associate keys with data. Am I missing soemthing?
>
> is in perl $hash{ "joe" } = $joesData
> and $data = $hash{ " joe" }
>
> can I do something like this in REBOL?
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.