Next: , Up: SRFI-1


39.3.1 Constructors

New lists can be constructed by calling one of the following procedures.

— Scheme Procedure: xcons d a

Like cons, but with interchanged arguments. Useful mostly when passed to higher-order procedures.

— Scheme Procedure: list-tabulate n init-proc

Return an n-element list, where each list element is produced by applying the procedure init-proc to the corresponding list index. The order in which init-proc is applied to the indices is not specified.

— Scheme Procedure: iota count [start step]

Return a list containing count elements, where each element is calculated as follows:

start + (count - 1) * step

start defaults to 0 and step defaults to 1.