MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 54


What DataWeave 2.0 type can be used as input to a map operation?

Show Answer
Correct Answer: B

The DataWeave 2.0 type that can be used as input to a map operation is an Array. Map is a function that iterates over an array, applying a transformation to each element in the array.

Discussion

2 comments
Sign in to comment
sirious09Option: B
Aug 16, 2022

B - "To apply the transformation to each element in the array use the map function. The map function as 2 parameters, the input array and an optional mapper function used to name the parameters that represent the object and the index of the current elements."

ilya_tsyOption: B
Sep 8, 2022

Array is correct