April 4, 2019
11:22 a.m.
On 04/04/19 4:46 PM, Roelof Wobben wrote:
Hello,
For a challenge of Exercism I need to check if some parenthes and brackets are balanced.
so for example
()Â = true ([])Â = true
but (])Â is not true because the bracket has no opening bracket.
Now I wonder if I can premature end a #do:Â like this
collection do: [:element | (condition with element) ifFalse: [^false]]
Have you looked at anySatisfy: #('the' 'quick' 'brown' 'fox') anySatisfy: [:s | s beginsWith: 'x' ] Regards .. Subbu