[REBOL] Re: How to use Hash index
From: greggirwin:mindspring at: 22-Aug-2003 10:46
Hi Gabriele,
GI>> One difference is that there is no direct "lexical" format for hash!
GI>> values; you have to convert other block values to them or use "make
GI>> hash!"
GS> Actually, there is, and now is available in the release version of
GS> Core too. (View's release version still lacks this syntax.)
>>>> h: make hash! [A [a b c] B [1 2 3] C [! * ~]]
GS> h: #[hash! [A [a b c] B [1 2 3] C [! * ~]]]
GS> :-)
Hmmmm, I *suppose* that counts. ;)
For those of you who don't know, what Gabriele posted is the
serialized format of a hash, which can now be used directly.
>> mold h
== "make hash! [A [a b c] B [1 2 3] C [! * ~]]"
>> mold/all h
== "#[hash![A [a b c] B [1 2 3] C [! * ~]]]"
--Gregg