chickadee » srfi-1 » iota

(iota count [start step]) -> listprocedure

Returns a list containing the elements

(START START+STEP ... START+(COUNT-1)*STEP)

The START and STEP parameters default to 0 and 1, respectively. This procedure takes its name from the APL primitive.

(iota 5) => (0 1 2 3 4)
(iota 5 0 -0.1) => (0 -0.1 -0.2 -0.3 -0.4)