Source: readlearncode.com

DataWeave: The map Function Explained

Category: Data

Posted on November 24, 2020 by Alex in DataWeave, Development, Integration, Mule 4 // 4 Comments It does this by iterating over the elements in the array and applying a transformation to each element. The result of the transformation is collected together and output as an array of transformed elements.

The array is always to the left of the map function and the lambda expression is always on the right of the map function. In figure 1 the map function iterations over the array, element by element, and passes each element into the lambda expression on the right of the map function.

Related Articles