[REBOL] Re: From word to none
From: joel:neely:fedex at: 18-Jun-2003 17:02
Hi, again, Hallvard,
REDUCE is your friend!
Hallvard Ystad wrote:
> Hi
>
> I have a hash of values in a file, and in this hash, some values
> are none! The file looks like this:
>
> make hash! ["some string" none none "some string" 55 438 {"29621"} ]
>
REDUCE the block before making the hash:
>> foo: make hash! reduce ["some string" none none "some string" 55 438
{"29621"} ]
== make hash! ["some string" none none "some string" 55 438 {"29621"}]
>> foreach thingie foo [print [type? thingie thingie]]
string some string
none none
none none
string some string
integer 55
integer 438
string "29621"
>>
-jn-
--
----------------------------------------------------------------------
Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446
Counting lines of code is to software development as
counting bricks is to urban development.