Hello Robert,


## a: 1                                  
== 1
## compose [(a + 1) [(a + 2)]]     
== [2 [(a + 2)]]
## compose/deep [(a + 1) [(a + 2)]]
== [2 [3]]


Best regards
Thomas Jensen


On 12-Nov-99, [EMAIL PROTECTED] wrote:

> 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 to compose
> Refinements:
>    /deep -- Compose within nested blocks
>>> compose [[test bla] bla [test]]
> == [[test bla] bla [test]]
>>> compose/deep [[test bla] bla [test]]
> == [[test bla] bla [test]]
>>> 
> 
> ?? For the last I would have expected: [test bla bla test]
> 
> So what's the difference with /deep?
> 
> Robert M. Muench, Karlsruhe, Germany
>    ==> ask for PGP public-key <==
> 
>  When do you want to reboot today?
> 
> Use the free portable GUI Library
> OpenAmulet from http://www.openip.org
> 
Regards

Reply via email to