Hello everybody,

When I used to program in Scheme, I found very usefull the second-order 
"apply" function, and during the several years I am programming with 
NetLogo I miss it time to time. If you don't remember it, the functioning 
of apply is:

apply f [a1 ... an] = f a1 ... an

It's very uncomfortable, in order to apply an n-ary report to a list of 
values, having to extract the values one by one using the item function: f 
(item 0 a) ... (item (n-1) a), and I think that the name of apply will make 
easier to read the code . 

One example usage comes when you want to extract-rgb color to a list, then 
modifying this list, and finally approximate-rgb again from the list (but 
there are more cases of usage, of course).

Maybe it can be implemented in an extension, but I think that it must be in 
the same section of map, reduce, etc...

All the best

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to