[REBOL] Re: Interlacing blocks

2004-01-07 Thread Alain Goyé
Thank you Gregg, this is my answer ! Alain. Hi Alain, AG I needed something to evaluate a function on ALL elements of a AG block, and keep ALL the results (in a block), so I did these. AG Can this be useful, or is there a better way ? And also better AG names ? Looks kind of like

[REBOL] Re: Interlacing blocks

2004-01-06 Thread Alain Goyé
Hi all, after NFOREACH, this will look very simplistic, but I needed something to evaluate a function on ALL elements of a block, and keep ALL the results (in a block), so I did these. Can this be useful, or is there a better way ? And also better names ? These functions are almost 1-liners.

[REBOL] Re: Interlacing blocks

2004-01-06 Thread Gregg Irwin
Hi Alain, AG I needed something to evaluate a function on ALL elements of a AG block, and keep ALL the results (in a block), so I did these. AG Can this be useful, or is there a better way ? And also better AG names ? Looks kind of like MAP to me. map: func [fn blk args /local result][

[REBOL] Re: Interlacing blocks

2004-01-06 Thread Volker Nitsch
Am Montag 05 Januar 2004 06:48 schrieb Henrik Mikael Kristensen: Hi Interlacing blocks: a: [a b c] b: [x y z] c: [1 2 3] = d: [a x 1 b y 2 c z 3] Is there a function to do this? I wrote my own, but was curious. If nothing else is at hand, a: [a b c] b: [x y z] c: [1 2 3] d: copy[]

[REBOL] Re: Interlacing blocks

2004-01-05 Thread Gregg Irwin
Ashley Henrik, Interlacing blocks: AT nforeach (posted a couple of months back) can do this. NFOREACH was from Gabriele (his original message is after my signature). Romano commented that 'bargs should be copied to handle recursion, and Gabriele mentioned that maybe [throw] should be added

[REBOL] Re: Interlacing blocks

2004-01-05 Thread Gabriele Santilli
Hi Gregg, On Monday, January 5, 2004, 6:06:27 PM, you wrote: GI NFOREACH was from Gabriele (his original message is after my GI signature). Romano commented that 'bargs should be copied to handle GI recursion, and Gabriele mentioned that maybe [throw] should be added GI and other subtle issues

[REBOL] Re: Interlacing blocks

2004-01-05 Thread A J Martin
Henrik Mikael Kristensen wrote: Interlacing blocks: a: [a b c] b: [x y z] c: [1 2 3] = d: [a x 1 b y 2 c z 3] Is there a function to do this? I wrote my own, but was curious. a: [a b c] == [a b c] b: [x y z] == [x y z] x: [1 2 3] == [1 2 3] d: interweave reduce [a b x] == [a x 1

[REBOL] Re: Interlacing blocks

2004-01-04 Thread Ashley Trter
Interlacing blocks: a: [a b c] b: [x y z] c: [1 2 3] = d: [a x 1 b y 2 c z 3] Is there a function to do this? I wrote my own, but was curious. nforeach (posted a couple of months back) can do this. Regards, Ashley -- To unsubscribe from this list, just send an email to