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

Evaluating a string

 [1/5] from: tim::johnsons-web::com at: 23-Sep-2003 8:05


Hi Rebols: I have the following:
> val: "efg"
== "efg"
>> args: [val 2]
== [val 2] ; Now what is the "rebol way" ; to convert 'args to ; {"efg" 2} ? ; TIA ; tim -- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com

 [2/5] from: maximo:meteorstudios at: 23-Sep-2003 12:46


val: "efg" args: [val 2] mold/only reduce args == {"efg" 2} -max ----------- meteor Studios, T.D. ----------- Never Argue with an idiot. They will bring you down to their level and beat you with experience

 [3/5] from: weyns:online:no at: 23-Sep-2003 18:58


----- Original Message ----- From: "Tim Johnson" <[tim--johnsons-web--com]> To: <[rebol-list--rebol--com]> Sent: 23. september 2003 18:05 Subject: [REBOL] Evaluating a string
> Hi Rebols: > I have the following:
<<quoted lines omitted: 5>>
> ; to convert 'args to > ; {"efg" 2} ?
I am new to Rebol. So this may be the blind leading the blind... However, I have been just today playing with the examples of exelent online docs and stumbled on to "Reduce". (http://www.rebol.com/docs/core23/rebolcore-4.html) If I execute reduce on your example I get:
>> reduce args
== ["efg" 2]
>>
h.t.h Conrad Weyns

 [4/5] from: tim:johnsons-web at: 23-Sep-2003 9:30


* Maxim Olivier-Adlhoch <[maximo--meteorstudios--com]> [030923 09:15]:
> val: "efg" > args: [val 2] > mold/only reduce args
Oh of course! I'd forgotten about option /only Thanks Max! tj
> == {"efg" 2} > -max
<<quoted lines omitted: 34>>
> To unsubscribe from this list, just send an email to > [rebol-request--rebol--com] with unsubscribe as the subject.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com

 [5/5] from: maximo:meteorstudios at: 23-Sep-2003 14:01


I never new about it... so I'm happy to have looked for it... rebol is a never ending learning experience. -max ----------- meteor Studios, T.D. ----------- Never Argue with an idiot. They will bring you down to their level and beat you with experience

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted