Talk:Brace expansion: Difference between revisions

(→‎Duplicate supression: nothing to do with duplicates, methinks)
Line 37:
b</pre>
:We still get four entries for the first one, and the dupes aren't removed from the second one. I don't know what you're doing different, offhand, perhaps not throwing away stuff when you backtrack? --[[User:TimToady|TimToady]] ([[User talk:TimToady|talk]]) 18:54, 31 January 2014 (UTC)
 
:The reference solution (Perl) does agree with the spec: There should be no suppression of duplicates. As for the test case you mention, it has '''four''' expansions and not eight, because nested brace groups only expand the "branch" they belong to. For example, the pattern <code>aa{,{,11}cc}22</code> has three expansions (<code>aa22</code>&nbsp; <code>aacc22</code>&nbsp; <code>aa11cc22</code>), not four.
--[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 18:58, 31 January 2014 (UTC)
Anonymous user