DataWeave 2.4 introduced the
reverse function in the
Strings module. With this function we reverse the string value that we pass in as argument. The result is the reversed string.
In the following example we reverse the value DataWeave Delight:
%dw 2.0 import reverse from dw::core::Strings output text/plain --- reverse("DataWeave Delight")
Written with DataWeave 2.4.
|DataWeave is a functional language designed by MuleSoft for transforming data structures defined in for example JSON, XML or CSV.|