array_map


array_map(fn, a1, @rest...)
      

Return an array with the results of applying the function fn to the elements of the arrays a1, .... The arrays must be of the same length. Fn must accept as many arguments as there are arrays.

Examples:


array_map(^(x, y) x * y, #[1, 2, 3], #[4, 5, 6])
// #[4, 10, 18]
      

Also see:

array_for_each


Core Module Index | Contents