[REBOL] Re: FAQ: How to return a block with evaluated value ?
From: greggirwin:mindspring at: 12-Dec-2001 12:02
Hi Patrick,
<< How to return a block with evaluated value ?
Short answer:
Using compose. >>
'reduce also works for your example:
b: func [n][return reduce [n n]]
Jeff Kreis has written a really great article about 'compose for the REBOL
Forces eZine. Check it out for all the details. It's behavior is different
than 'reduce, and the use of the /deep refinement with 'compose can be very
handy too.
There's often more than one solution in REBOL, and there is rarely a single
best
solution. :)
--Gregg