> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 12, 1999 4:31 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: compose??
> ## a: 1
> == 1
> ## compose [(a + 1) [(a + 2)]]
> == [2 [(a + 2)]]
> ## compose/deep [(a + 1) [(a + 2)]]
> == [2 [
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 12, 1999 4:01 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] compose?? Re:
> Almost there, you're just using square brackets"[" instead of
> parens &
quot;]
Without deep
compose [(test) [(bla)] (bla) bla (test)]
== ["Hi" [(bla)] "There" bla "Hi"]
With deep
>> compose/deep [(test) [(bla)] (bla) bla (test)]
== ["Hi" ["There"] "There" bla "Hi"]
>>
Cheers,
Al
Hi, just playing around with 'compose. I thought it would be a cool thing
to use, to flatten nested blocks into one level. So I tried:
>> help compose
Selectively evaluates a block of expressions, only evaluating paren
expressions and returns the result as a block.
Arguments:
value -- Block t