The OpenD Programming Language

seq

Generates a sequence from start..end by increment. Includes start, excludes end. Does so eagerly as an array.

CommonType!(T, U)[]
seq
(
T
U
V = uint
)
(,
U end
,
V increment = 1U
)

Examples

auto s = seq(0, 5);
assert(s == [0, 1, 2, 3, 4]);

Meta