Brace expansion: Difference between revisions
Content added Content deleted
m (→{{header|Tailspin}}: Add required type bound for matcher) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 5,362: | Line 5,362: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
{{trans|Python}} |
{{trans|Python}} |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var getGroup // forward declaration |
||
var getItem = Fn.new { |s, depth| |
var getItem = Fn.new { |s, depth| |
||
Line 5,457: | Line 5,457: | ||
{}} some }{,{\\ edge \,}{ cases, {here} \\\\\} |
{}} some }{,{\\ edge \,}{ cases, {here} \\\\\} |
||
</pre> |
</pre> |
||
=={{header|zkl}}== |
=={{header|zkl}}== |
||
This is a two pass algorithm (2*length(string)), one pass to find valid {} pairs, the next pass to expand them. |
This is a two pass algorithm (2*length(string)), one pass to find valid {} pairs, the next pass to expand them. |