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

[REBOL] Parse types - was Re: Sort by first part of line

From: brett::codeconscious::com at: 8-Sep-2002 12:32

> parse/all data [ > some [ > h: any " " copy num integer!
I must have missed this or knew it and lost it from memory, but I didn't realise you could parse string data by specifying a datatype (I knew it for blocks of course - they are already loaded). So:
>> parse {3} [integer!]
== true but
>> parse {3-oct-2002} [date!]
== false Could some one educate me on this please :^) Regards, Brett.