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

[REBOL] Re: From word to none

From: brett:codeconscious at: 19-Jun-2003 8:02

Arnaud had the same problem in his thread "sorting a serie ...." Jan's serialised form of none solution suprised me as I still haven't got used to that. But it a good way for future releases. An "old way" would be to use reduce on your block. Regards, Brett. ----- Original Message ----- From: "Hallvard Ystad" <[hallvard--ystad--helpinhand--com]> To: <[rebol-list--rebol--com]> Sent: Thursday, June 19, 2003 6:03 AM Subject: [REBOL] From word to none 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"} ] I go through the hash with foreach, like this: foreach [a b c] hash [ if none? b [ print "We've got a none! value" ] ] Now here's my problem: 'foreach gives the none values as word! values. How can I get them as "real" none! values? Thanks for any help, ~H