[REBOL] Re: Fast transformation?
From: Izkata::Comcast::net at: 28-Nov-2007 2:21
Similar to the strategy I was thinking, except I'm a fan of the funnier
looking stuff - taking advantage of the "code is data" idea:
(Copied from console then re-spaced for clarity)
>> NewBlock: foreach Val Others: [
[{Bill} 50] [{Jane} 45] [[{Dan} 19] [{Rich} 20]]
] copy/deep [
either block? Val [
append Others Val
][
append [] Val
]
]
== ["Bill" 50 "Jane" 45 "Dan" 19 "Rich" 20]
On Sun, 2007-11-25 at 06:06 +0000, Sunanda wrote: