Balanced brackets: Difference between revisions
Content added Content deleted
Line 3,389: | Line 3,389: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
<lang julia>using Printf |
|||
{{works with|Julia|0.6}} |
|||
function balancedbrackets(str::AbstractString) |
|||
i = 0 |
i = 0 |
||
for c in str |
for c in str |