Excerpts from Dmitry Makovey's message of 2014-06-04 18:17:04 -0400: > Winning combination turned out to be: > > ( groups['A']+groups['B'] ) | unique > > I do like how simple it looks vs > > ( groups['A']|union (groups['B']))| unique
Just FYI, the 'unique filter in the latter form is redundant; this should work fine: groups['A']|union(groups['B') Sets, by definition, have no duplicate items. -- Morgan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1401978298-sup-8285%40al.wesleyan.edu. For more options, visit https://groups.google.com/d/optout.