Applies a transformation function to each element of an array and returns a new array with the transformed elements.
Because the transformation function is supplied in first place, the type of the array is inferred. The argument of the transformation function must be specified.
Applies a transformation function to each element of an array and returns a new array with the transformed elements.
Because the transformation function is supplied in first place, the type of the array is inferred. The argument of the transformation function must be specified.
Example