Skip to content

Commit

Permalink
Uniform spacing across all filter examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoya committed Feb 17, 2014
1 parent 2164573 commit 95761ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docsite/rst/playbooks_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,23 +189,23 @@ All these functions return a unique set from sets or lists.

To get a unique set from a list::

{{ list1 |unique }}
{{ list1 | unique }}

To get a union of two lists::

{{ list1 | union(list2) }}

To get the intersection of 2 lists (unique list of all items in both)::

{{ list1 |intersect(list2)}}
{{ list1 | intersect(list2) }}

To get the difference of 2 lists (items in 1 that don't exist in 2)::

{{ list1 |difference(list2)}}
{{ list1 | difference(list2) }}

To get the symmetric difference of 2 lists (items exclusive to each list)::

{{ list1 |symmetric_difference(list2)}}
{{ list1 | symmetric_difference(list2) }}

.. _other_useful_filters:

Expand Down

0 comments on commit 95761ea

Please sign in to comment.