android-components / mozilla.components.lib.jexl / Jexl / addTransform

# addTransform

`fun addTransform(name: String, transform: Transform): Unit` (source)

Adds or replaces a transform function in this Jexl instance.

### Parameters

`name` - The name of the transform function, as it will be used within Jexl expressions.

`transform` - The function to be executed when this transform is invoked. It will be provided with two arguments: - value: The value to be transformed - arguments: The list of arguments for this transform.