Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Dec 13, 2017
1 parent d3939f0 commit bddb4bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/docsite/rst/playbooks_filters.rst
Expand Up @@ -116,6 +116,19 @@ To get the maximum value from a list of numbers::

{{ [3, 4, 2] | max }}

.. versionadded:: 2.5

Flatten a list (same thing the `flatten` lookup does)::

{{ [3, [4, 2] ]|flatten }}

Flatten only the first level of a list (aking to the `items` lookup)::

{{ [3, [4, [2]] ]|flatten(level=1) }}


To get the minimum value from list of numbers::

.. _set_theory_filters:

Set Theory Filters
Expand Down

0 comments on commit bddb4bd

Please sign in to comment.