232 |
@code{cons*} is similar, but the last argument is stored in the cdr of |
@code{cons*} is similar, but the last argument is stored in the cdr of |
233 |
the last pair of the list. |
the last pair of the list. |
234 |
|
|
235 |
|
@c C Function scm_list(rest) used to be documented here, but it's a |
236 |
|
@c no-op since it does nothing but return the list the caller must |
237 |
|
@c have already created. |
238 |
|
@c |
239 |
|
@deffn {Scheme Procedure} list elem1 @dots{} elemN |
240 |
|
@deffnx {C Function} scm_list_1 (elem1) |
241 |
|
@deffnx {C Function} scm_list_2 (elem1, elem2) |
242 |
|
@deffnx {C Function} scm_list_3 (elem1, elem2, elem3) |
243 |
|
@deffnx {C Function} scm_list_4 (elem1, elem2, elem3, elem4) |
244 |
|
@deffnx {C Function} scm_list_5 (elem1, elem2, elem3, elem4, elem5) |
245 |
|
@deffnx {C Function} scm_list_n (elem1, @dots{}, elemN, @nicode{SCM_UNDEFINED}) |
246 |
@rnindex list |
@rnindex list |
247 |
@deffn {Scheme Procedure} list . objs |
Return a new list containing elements @var{elem1} to @var{elemN}. |
248 |
@deffnx {C Function} scm_list (objs) |
|
249 |
Return a list containing @var{objs}, the arguments to |
@code{scm_list_n} takes a variable number of arguments, terminated by |
250 |
@code{list}. |
the special @code{SCM_UNDEFINED}. That final @code{SCM_UNDEFINED} is |
251 |
|
not included in the list. None of @var{elem1} to @var{elemN} can |
252 |
|
themselves be @code{SCM_UNDEFINED}, or @code{scm_list_n} will |
253 |
|
terminate at that point. |
254 |
@end deffn |
@end deffn |
255 |
|
|
256 |
@deffn {Scheme Procedure} cons* arg1 arg2 @dots{} |
@deffn {Scheme Procedure} cons* arg1 arg2 @dots{} |