Rev Language Reference


seq - Create a sequence values

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

Usage

seq(Integer from, Integer to, Integer by)

Arguments

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

Details

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.

Example

seq(-0.5, 10.5, 2)

See Also