Is your feature request related to a problem? Please describe.
I have an array of objects like below
I want to map it to a new array like below
[
{ "someKey" : {...} },
{ "someKey" : {...} },
...
]
It is not possible to perform such a transformation using the map method.
Describe the solution you'd like
Below is an example of pickFIrst function usage.
pickFirst(a,b,c -> it != null)
It already has a concept of it
reference, which is a self-reference to the current object while iterating over a,b and c.
We can apply this concept to the map function so that the above transformation can be achieved by
map(myArray -> {
someKey = it
})
Describe alternatives you've considered
None of the supported functions support this usecase
Additional context