Rev Language Reference

seq - Create a sequence values

Create a sequence of values separate by a given step-size.


seq(Integer from, Integer to, Integer by)


from : Integer (pass by value)
The first value of the sequence.
to : Integer (pass by value)
The last value of the sequence.
by : Integer (pass by value)
The step-size between value.

Return Type


The 'seq' function create a sequence of values, starting with the initial value and then adding the step-size to it until the value reaches the 'to'-value.


seq(-0.5, 10.5, 2)

See Also