span class="hljs-number">0</span> ..&lt; left.len:
      <span class="hljs-literal">result</span>.add <span class="hljs-string">']'</span>

  <span class="hljs-keyword">for</span> line <span class="hljs-keyword">in</span> <span class="hljs-string">&quot;&quot;&quot;
[1,2]
[[1,2],3]
[9,[8,7]]
[[1,9],[8,5]]
[[[[1,2],[3,4]],[[5,6],[7,8]]],9]
[[[9,[3,8]],[[0,9],6]],[[[3,7],[4,9]],3]]
[[[[1,3],[5,3]],[[1,3],[8,7]]],[[[4,9],[6,9]],[[8,2],[7,3]]]]&quot;&quot;&quot;</span>.splitLines:
    <span class="hljs-keyword"