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

[REBOL] Re: [none idiom found?] The best shortcut word for "not none?"

From: greggirwin::mindspring::com at: 6-Sep-2006 12:41

FS> do any [ FS> all [ FS> value: find cases value FS> value: find next value block! FS> first value FS> ] FS> case FS> ] FS> ] I'm OK with either one. If it weren't for how integers parse, we could do this: do either parse cases [ thru value to block! value: to end ] [first value] [case] Adding the int handling will probably make it unwieldy though, unless Ladislav has a handy parse trick up his sleeve. :) -- Gregg