string.map()

edit

Iterates over every entry of the string and calls the closure function to work on the element of the string.

Introduced: 6.0.0.105

string.map( closure=function )

Returns: String

Argument Description
closure
function, optional
edit

Closure or a function reference that will be called for each of the iteration.

Alias: callback

Usage Notes

edit

Since Lucee 6, this function iterates over each character in the string.

For list-based iteration with delimiters, use string.listMap() instead.

LDEV-3747

Examples

There are currently no examples for this function

See also