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

[REBOL] Re: "Spreading"

From: greggirwin:mindspring at: 29-Jul-2002 7:12

Hi Charles, << I'm not exactly sure what to call this, but in another language I sometimes use, I can do something like this. Where, hypothetically: data: "Charles-W-Raymond" info: [firstname middleinit lastname]: parse data "-"
>>
Is this what you're after?
>> data: "Charles-W-Raymond"
== "Charles-W-Raymond"
>> set [first-name middle-name last-name] parse data "-"
== ["Charles" "W" "Raymond"]
>> first-name
== "Charles"
>> last-name
== "Raymond" --Gregg