Hi guys, I'm trying to implement a kind of map helper similar to javascript map function. So my question is how can i pass a function to an helper ?
Ideally to have something like: (map array double) where double is the function which will take each array's element.
Hi guys, I'm trying to implement a kind of
map
helper similar to javascript map function. So my question is how can i pass a function to an helper ? Ideally to have something like:(map array double)
wheredouble
is the function which will take each array's element.