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

10.2.1 List constructors

Function: xcons cd ca
[SRFI-1] Equivalent to (cons ca cd). Useful to pass to higher-order procedures.

Function: cons* elt1 elt2 ...
[SRFI-1] Like list, but the last argument provides the tail of the constructed list. This is just a synonym of Gauche built-in procedure list*.
 
(cons* 1 2 3 4) => (1 2 3 . 4)
(cons* 1) => 1

Function: list-tabulate n init-proc
[SRFI-1] Constructs an n-element list, in which each element is generated by (init-proc i).
 
(list-tabulate 4 values) => (0 1 2 3)

Function: circular-list elt1 elt2 ...
[SRFI-1] Constructs a circular list of the elements.
 
(circular-list 'z 'q) => (z q z q z q ...)

Function: iota count &optional (start 0) (step 1)
[SRFI-1] Returns a list of numbers, starting from start, increasing by step.
 
(iota 5) => (0 1 2 3 4)
(iota 5 0 -0.1) => (0 -0.1 -0.2 -0.3 -0.4)



This document was generated by Ken Dickey on November, 28 2002 using texi2html