chickadee » srfi-116 » iiota

iiota count #!optional start stepprocedure

Returns an ilist 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.

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