344 |
@deffn {Scheme Procedure} append! . lists |
@deffn {Scheme Procedure} append! . lists |
345 |
@deffnx {C Function} scm_append_x (lists) |
@deffnx {C Function} scm_append_x (lists) |
346 |
A destructive version of @code{append} (@pxref{Pairs and |
A destructive version of @code{append} (@pxref{Pairs and |
347 |
Lists,,,r5rs, The Revised^5 Report on Scheme}). The cdr field |
lists,,,r5rs, The Revised^5 Report on Scheme}). The cdr field |
348 |
of each list's final pair is changed to point to the head of |
of each list's final pair is changed to point to the head of |
349 |
the next list, so no consing is performed. Return a pointer to |
the next list, so no consing is performed. Return a pointer to |
350 |
the mutated list. |
the mutated list. |
360 |
@c NJFIXME explain new_tail |
@c NJFIXME explain new_tail |
361 |
@deffn {Scheme Procedure} reverse! lst [new_tail] |
@deffn {Scheme Procedure} reverse! lst [new_tail] |
362 |
@deffnx {C Function} scm_reverse_x (lst, new_tail) |
@deffnx {C Function} scm_reverse_x (lst, new_tail) |
363 |
A destructive version of @code{reverse} (@pxref{Pairs and Lists,,,r5rs, |
A destructive version of @code{reverse} (@pxref{Pairs and lists,,,r5rs, |
364 |
The Revised^5 Report on Scheme}). The cdr of each cell in @var{lst} is |
The Revised^5 Report on Scheme}). The cdr of each cell in @var{lst} is |
365 |
modified to point to the previous list element. Return a pointer to the |
modified to point to the previous list element. Return a pointer to the |
366 |
head of the reversed list. |
head of the reversed list. |