StringMap()
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
StringMap( string=string, closure=function );
Returns: String
Examples
myString="Hello World";
closure=function(val){
return (val & 'a')
}
writeDump(StringMap(myString,closure));
See also
- string.map()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)