Next: SRFI-1 Predicates, Up: SRFI-1
New lists can be constructed by calling one of the following procedures.
Like
cons
, but with interchanged arguments. Useful mostly when passed to higher-order procedures.
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.
Return a new list containing the elements of the list lst.
This function differs from the core
list-copy
(see List Constructors) in accepting improper lists too. And if lst is not a pair at all then it's treated as the final tail of an improper list and simply returned.
Return a circular list containing the given arguments elt1 elt2 ....
Return a list containing count numbers, starting from start and adding step each time. The default start is 0, the default step is 1. For example,
(iota 6) => (0 1 2 3 4 5) (iota 4 2.5 -2) => (2.5 0.5 -1.5 -3.5)This function takes its name from the corresponding primitive in the APL language.