[string->forEachCharacter] permits each character to be accessed in a forEach method.
'String Value'->forEachCharacter => {
doSomethingWithCharacter(#1)
}
Use the [string->forEachCharacter] method. The following example takes a string, converts it to uppercase, then auto-collects the output using carets {^ ... ^}.
Code
'Resistance is futile.'->forEachCharacter => {^
string_uppercase(#1)
^}
Result
RESISTANCE IS FUTILE.
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments