Name

series

Usage

builtin-function

Syntax

(series start end step)
(series start end)
(series end)
(series)

Description

Returns a lazy list of integer numbers. By default a series starts at 1. The upper bound is inclusive and defaults to int32:MAX-VALUE.

user 1 > (series 3 10 2)
it: (3 5 7 9 11)
user 2 > (series 3 10)
it: (3 4 5 6 7 8 9 10)
user 3 > (series 10)
it: (1 2 3 4 5 6 7 8 9 10)
user 4 > (series 10 3 -1)
it: (10 9 8 7 6 5 4 3)