Brace expansion: Difference between revisions

m
Line 1,672:
x = getgroup(s[2:end], depth+1)
if x != ""
out, s = [a * b for a in out, b in x[1]], x[2]
s = x[2]
continue
end
elseif c == '\\' && length(s) > 1
s, c = s[2:end], c * s[2]
c = c * s[2]
end
out, s = [a * c for a in out], s[2:end]
s = s[2:end]
end
return out, s
end
 
function getgroup(s, depth)
out, comma = "", false
Line 1,749 ⟶ 1,746:
{}} some }{,{\\\{ edge \}}{ cases, {here} \\\\\\\\\''''
</pre>
 
 
=={{header|Kotlin}}==
4,108

edits