Lasso Soft Inc. > Home

[ string->forEachWordBreak ]

Method

[string->forEachWordBreak] permits each "word" to be accessed in a forEach method.

  • Syntax
'String Value'->forEachWordBreak => {
	doSomethingWithWord(#1)
}
Examples
  • Beginner

To access each "word" in a string:

Use the [string->forEachWordBreak] method. The following example takes a string, converts each "word" to uppercase, then auto-collects the output using carets {^ ... ^}.

Code

'Resistance is futile.'->forEachWordBreak => {^
	string_uppercase(#1)
^}

Result

RESISTANCEISFUTILE.

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft