www.delorie.com/gnu/docs/guile/guile_442.html   search  
Buy GNU books!

Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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: circular-list elt1 elt2 ...
Return a circular list containing the given arguments elt1 elt2 ....

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.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003