[REBOL] Re: How to use Hash index
From: greggirwin:mindspring at: 22-Aug-2003 9:48
TM> is there anybody out there who can shortly describe to me how hash is
TM> working and how to use it in rebol. A little sample with nestedt blocks
TM> would be nice.
A hash! works like a block!, but is much faster for lookups. One
difference is that there is no direct "lexical" format for hash!
values; you have to convert other block values to them or use "make
>> h: make hash! [A [a b c] B [1 2 3] C [! * ~]]
== make hash! [A [a b c] B [1 2 3] C [! * ~]]
== [1 2 3]
>> h/b: [4 5 6]
== make hash! [A [a b c] B [4 5 6] C [! * ~]]
Does that help?