hmm.
When I try this on P7 |input stepChanges floor| input := '((('. floor := 0. stepChanges := input collect: [ :c | floor := floor + (c = '(' ifTrue: [ 1 ] ifFalse: [ -1 ]). floor ]. stepChanges detectIndex: [ :each | each = -1 ] ifNone: [ 'invalid input yo' ]. then I see this error message : Improper store to indexable object. Roelof Op 9-11-2018 om 17:39 schreef Roelof Wobben:
|
- [Pharo-users] what must be instead of the ?? Roelof Wobben
- Re: [Pharo-users] what must be instead of the ?? Joachim Tuchel
- Re: [Pharo-users] what must be instead of the ?? Tim Mackinnon
- Re: [Pharo-users] what must be instead of the ?? Ben Coman
- Re: [Pharo-users] what must be instead of the ?? Roelof Wobben
- Re: [Pharo-users] what must be instead of the... Peter Uhnak
- Re: [Pharo-users] what must be instead of... Roelof Wobben
- Re: [Pharo-users] what must be inste... Roelof Wobben
- Re: [Pharo-users] what must be i... Gabriel Cotelli
- Re: [Pharo-users] what must ... Alistair Grant
- Re: [Pharo-users] what must ... Peter Uhnak
- Re: [Pharo-users] what must ... Alistair Grant
- Re: [Pharo-users] what must ... Alistair Grant
- Re: [Pharo-users] what must ... Roelof Wobben
- Re: [Pharo-users] what must ... Roelof Wobben
- Re: [Pharo-users] what must ... Roelof Wobben
- Re: [Pharo-users] what must be i... Richard O'Keefe