Lucee Function Reference
stringmap()
Iterates over every entry of the string and calls the closure function to work on the element of the string.
Example
stringmap(string string,[function closure]):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
string | string | Yes | Input string. |
closure | function | No | Closure or a function reference that will be called for each of the iteration. |