Brace expansion: Difference between revisions

Content added Content deleted
Line 3,256: Line 3,256:
Out = ["Itemized, please.", "Itemize, please.", "Iterated, please.", "Iterate, please.", "Italicized, please.", "Italicize, please."].
Out = ["Itemized, please.", "Itemize, please.", "Iterated, please.", "Iterate, please.", "Italicized, please.", "Italicize, please."].


?- brace_expansion("{,{,gotta have{ ,\\, again\\, }}more }cowbell!", Out), writeln(Out).
?- brace_expansion("{,{,gotta have{ ,\\, again\\, }}more }cowbell!", Out).
[cowbell!,more cowbell!,gotta have more cowbell!,gotta have, again, more cowbell!]
Out = ["cowbell!", "more cowbell!", "gotta have more cowbell!", "gotta have, again, more cowbell!"].
Out = ["cowbell!", "more cowbell!", "gotta have more cowbell!", "gotta have, again, more cowbell!"].