mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
parent
c2ac9d0831
commit
2b7799f817
3 changed files with 52 additions and 0 deletions
|
@ -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 (akin 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue