Skip to content

RANGE

Info

New in Atfinity 17.

Description

RANGE produces a list of consecutive integers. With one argument it counts from 0 up to (but not including) that argument. With two arguments it counts from the first up to (but not including) the second.

Use RANGE together with map() to iterate over indices.

Syntax

RANGE(end)
RANGE(start, end)

Returns: a list of integers.

Example

RANGE(4)

This returns [0, 1, 2, 3].

RANGE(2, 5)

This returns [2, 3, 4].