This PR adds native map/collect to Jexl. The <| and |> characters indicate a subexpression to be applied over the values of the incoming subject. Within the context of that subexpression # and code>@</code refer to the key and value of the element, respectively.
Got one more for ya!
This PR adds native map/collect to Jexl. The
<|
and|>
characters indicate a subexpression to be applied over the values of the incoming subject. Within the context of that subexpression#
and code>@</code refer to the key and value of the element, respectively.For example,
Also cleaned up some earlier code and added some tests.