Balanced brackets: Difference between revisions

Content deleted Content added
Franck (talk | contribs)
Line 3,155: Line 3,155:
| c |
| c |
0 self forEach: c [
0 self forEach: c [
c '[' == ifTrue: [ 1 + continue ]
c '[' == ifTrue: [ 1+ continue ]
c ']' <> ifTrue: [ continue ]
c ']' <> ifTrue: [ continue ]
1 - dup 0 < ifTrue: [ drop false return ]
1- dup 0 < ifTrue: [ drop false return ]
]
]
0 == ;
0 == ;