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
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.
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][
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[]
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
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
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
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