4 Returns a list containing an arithmetic progression of integers:
8 {% for i in range(0, 3) %}
12 {# returns 0, 1, 2, 3 #}
14 When step is given (as the third parameter), it specifies the increment (or
19 {% for i in range(0, 6, 2) %}
23 {# returns 0, 2, 4, 6 #}
25 The Twig built-in ``..`` operator is just syntactic sugar for the ``range``
26 function (with a step of 1):
36 The ``range`` function works as the native PHP `range`_ function.
41 * ``low``: The first value of the sequence.
42 * ``high``: The highest possible value of the sequence.
43 * ``step``: The increment between elements of the sequence.
45 .. _`range`: http://php.net/range