; Fix last change
* doc/lispref/lists.texi (Building Lists): * src/fns.c (Fappend): Fix last change (bug#73427). Suggested by Mattias Engdegård <mattias.engdegard@gmail.com>.
This commit is contained in:
parent
c8ed48b990
commit
8f265b49e3
2 changed files with 6 additions and 2 deletions
|
@ -670,6 +670,7 @@ This once was the usual way to copy a list, before the function
|
||||||
|
|
||||||
@cindex list of characters of a string
|
@cindex list of characters of a string
|
||||||
@cindex convert string to list of its characters
|
@cindex convert string to list of its characters
|
||||||
|
@findex string-to-list
|
||||||
Here's how to convert a string into a list of its characters:
|
Here's how to convert a string into a list of its characters:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
@ -679,6 +680,9 @@ This once was the usual way to copy a list, before the function
|
||||||
@end group
|
@end group
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
@noindent
|
||||||
|
The function @code{string-to-list} is a handy shortcut for the above.
|
||||||
|
|
||||||
With the help of @code{apply} (@pxref{Calling Functions}), we can append
|
With the help of @code{apply} (@pxref{Calling Functions}), we can append
|
||||||
all the lists in a list of lists:
|
all the lists in a list of lists:
|
||||||
|
|
||||||
|
@ -717,7 +721,7 @@ any other non-list final argument.
|
||||||
|
|
||||||
As an exception, if all the arguments but the last are @code{nil} and
|
As an exception, if all the arguments but the last are @code{nil} and
|
||||||
the last argument is not a list, the return value is that last argument
|
the last argument is not a list, the return value is that last argument
|
||||||
unchanged:
|
unchanged (i.e., in this case the return value is not a list):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
@group
|
@group
|
||||||
|
|
|
@ -724,7 +724,7 @@ a list, this results in a dotted list.
|
||||||
|
|
||||||
As an exception, if all the arguments except the last are nil, and the
|
As an exception, if all the arguments except the last are nil, and the
|
||||||
last argument is not a list, the return value is that last argument
|
last argument is not a list, the return value is that last argument
|
||||||
unaltered.
|
unaltered, not a list.
|
||||||
|
|
||||||
usage: (append &rest SEQUENCES) */)
|
usage: (append &rest SEQUENCES) */)
|
||||||
(ptrdiff_t nargs, Lisp_Object *args)
|
(ptrdiff_t nargs, Lisp_Object *args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue