pub fn range(lower: u32, upper: Option<u32>, step: Option<u32>) -> Vec<u32>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, Expand description
Returns a range.
Return a list containing an arithmetic progression of integers. range(i, j) returns [i, i+1, i+2, ..., j-1]. lower defaults to 0. When step is
given, it specifies the increment (or decrement). For example, range(4)
and range(0, 4, 1) return [0, 1, 2, 3]. The end point is omitted.
<ul>
{% for num in range(1, 11) %}
<li>{{ num }}
{% endfor %}
</ul>