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, maybe just 
spell out what exactly you want when you say "fold an array"?


On 18 Feb 2011, at 19:34, 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 appending of one array to another? (Aside from
> the obvious, and possibly slower, manual iteration method.)
> 
> 
> ~ Chris Innanen
> ~ Nonsanity
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

-- 

official ChatRev page:
http://bjoernke.com?target=chatrev


Chat with other RunRev developers:
go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to