diff options
Diffstat (limited to '.trash/3 resources/ansible/nested-loops.md')
-rw-r--r-- | .trash/3 resources/ansible/nested-loops.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.trash/3 resources/ansible/nested-loops.md b/.trash/3 resources/ansible/nested-loops.md new file mode 100644 index 0000000..3a5be97 --- /dev/null +++ b/.trash/3 resources/ansible/nested-loops.md @@ -0,0 +1,3 @@ +Nested loops can be done not by nesting loops over two separate lists, but by looping over the [[cartesian-product]] of the two using the `product` filter. + +`{{ list1 | product(list) | list }}`
\ No newline at end of file |