Re: Fold Operation on Arrays

2011-02-18 Thread Phil Davis
"union" lets you combine arrays. Phil On 2/18/11 10:34 AM, Nonsanity wrote: I thought I remembered that LiveCode has a fold operator of some sort on arrays, but I can't seem to find it. Was I mistaken? http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 What about simple merging or

Re: Fold Operation on Arrays

2011-02-18 Thread Björnke von Gierke
some of the math functions work on arrays, for example add, but that adds one number to each of the elements, i assume not what you want. there's also intersect and split, allowing some fancy shenanigans with arrays. Another one is sum(arrayGoesHere) which seems to be what you'd want? No idea, m

Re: Fold Operation on Arrays

2011-02-18 Thread Bob Sneidar
Whoops maybe I misunderstood you. Bob On Feb 18, 2011, at 10:34 AM, Nonsanity wrote: > I thought I remembered that LiveCode has a fold operator of some sort on > arrays, but I can't seem to find it. Was I mistaken? > > http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 > > What abou

Re: Fold Operation on Arrays

2011-02-18 Thread Bob Sneidar
wrap. I found it under Operator on the left pane of the Livecode Help. Bob On Feb 18, 2011, at 10:34 AM, Nonsanity wrote: > I thought I remembered that LiveCode has a fold operator of some sort on > arrays, but I can't seem to find it. Was I mistaken? > > http://en.wikipedia.org/wiki/Fold_%28

Fold Operation on Arrays

2011-02-18 Thread Nonsanity
I thought I remembered that LiveCode has a fold operator of some sort on arrays, but I can't seem to find it. Was I mistaken? http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 What about simple merging or appending of one array to another? (Aside from the obvious, and possibly slower,