Comma quibbling: Difference between revisions

Content deleted Content added
Grondilu (talk | contribs)
→‎{{header|Perl 6}}: fixing case of two inputs
Grondilu (talk | contribs)
→‎{{header|Perl 6}}: no need to use a string input actually
Line 47: Line 47:
}
}


say comma-quibbling(eval($_)) for
say comma-quibbling($_) for
< [] ["ABC"] ["ABC","DEF"] ["ABC","DEF","G","H"] >;</lang>
((), (<ABC>,), (<ABC DEF>), (<ABC DEF G H>)).tree;</lang>
{{out}}
{{out}}
<pre>{}
<pre>{}