Syntax
map(string|array, string)
Description
The map() function executes a specified function for each item in a string or array. The item is sent to the function as a parameter.
Example
function myfunc(n) {
return len(n)
}
x=map(["bus", "lorry", "boat"], myfunc)
println(x)
[3, 5, 4]