Mulesoft

The map Function In DataWeave Mule 4

Iterates over items in an array and outputs the results into a new array.

3 years ago

The filter Function (and Function Type Signatures) In DataWeave Mule 4

This function can be applied to an array. It iterates the array and matches the values with the expression. The…

3 years ago

Arrays (dw::core::Arrays)

DataWeave 2.0 makes it easier to define an array with a range (" to ").

3 years ago

$, $$, $$$ Syntax

For functions that DataWeave provides, you can represent the first, second, and third arguments of the passed lambda as $,…

3 years ago

Infix Notation

This type of notation is referred to as infix since the operator is in between the two operands that it…

3 years ago

Functions as Values

In other words, lambdas become useful when you want to pass functions as arguments to other functions, or return a…

3 years ago

Lambdas Function

DataWeave provides multiple ways to create functions. Just like we have named functions, we have functions without names, called lambdas.

3 years ago

Named Functions

We create functions in the declarations section of the script using the fun keyword. This associates a set of functionality…

3 years ago

Functions in DataWeave 2.0

You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script.

3 years ago

Pattern Matching with Literal Values

A match expression contains a list of case statements that can optionally have an else statement. Each case statement consists…

3 years ago