Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
I already thought to use this flow. but I only wondered if I could use the ^false this way and appearently it is allowed. so I can begin with this one. The Pharo track is still hidden but I saw on the github page that in a short time

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Richard O'Keefe
For a change this is an exercism problem I know something about. I did look at the exercism web site, and did all the SML exercises, but could not find any for Smalltalk or Pharo. The exercise is in fact about using a stack. stack <- empty for each character of the string if it is one

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Herby Vojčík
On 4. 4. 2019 13:16, 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

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
Op 4-4-2019 om 13:22 schreef K K Subbu: 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 w

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread K K Subbu
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

[Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
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 | (conditio