Balanced brackets: Difference between revisions
Content deleted Content added
Line 3,155: | Line 3,155: | ||
| c | |
| c | |
||
0 self forEach: c [ |
0 self forEach: c [ |
||
c '[' == ifTrue: [ 1 |
c '[' == ifTrue: [ 1+ continue ] |
||
c ']' <> ifTrue: [ continue ] |
c ']' <> ifTrue: [ continue ] |
||
1 |
1- dup 0 < ifTrue: [ drop false return ] |
||
] |
] |
||
0 == ; |
0 == ; |