StringReduceRight
Method Signature
StringReduceRight(list=[string], callback=[function:BiFunction], initialValue=[any], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean])Arguments
Argument
Type
Required
Description
Default
Examples
Simple stringReduceRight Example
myString = "abcd";
newString = stringReduceRight( myString, ( Any prev, Any next, Any idx, Any arr ) => {
return prev & next & idx;
}, "" );
writedump( newString );
How Do You Do This In Boxlang?
Related
Last updated
Was this helpful?
