Rev Language Reference


range - A range of consecutive integer numbers

Create a sequence of number in the given range (interval).

Usage

range(Integer first, Integer last)

Arguments

first : Integer (pass by value)
Lower value.
last : Integer (pass by value)
Upper value.

Return Type

Details

This function is a simplified version of the sequence function 'seq'. The range function creates a sequence of integer numbers with a step size of 1.

Example

range(1,20)
range(20,-20)

# this function is actually the same as the ':'
20:-20

See Also