Anonymous user
Balanced brackets: Difference between revisions
→{{header|Go}}
(→{{header|Perl}}: also Regexp::Common::balanced) |
|||
Line 1,671:
func testBalanced(s string) {
fmt.
for
switch
case '[':
open++
Line 1,681:
fmt.Println("not ok")
return
}
open--
|