diff options
| author | Luc Teirlinck | 2004-04-17 00:52:46 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-04-17 00:52:46 +0000 |
| commit | 948caddf0be648b04ce072ed2750977b8bab5c4e (patch) | |
| tree | b382ced662aae9a4c05f30fc04b9918ae0094211 | |
| parent | da879ae8709e8521849feb05e7c45bbd760d4a19 (diff) | |
| download | emacs-948caddf0be648b04ce072ed2750977b8bab5c4e.tar.gz emacs-948caddf0be648b04ce072ed2750977b8bab5c4e.zip | |
Add anchors. Some other minor changes.
| -rw-r--r-- | lispref/lists.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lispref/lists.texi b/lispref/lists.texi index 41b3918de06..7c369633c2e 100644 --- a/lispref/lists.texi +++ b/lispref/lists.texi | |||
| @@ -327,6 +327,7 @@ x | |||
| 327 | @end example | 327 | @end example |
| 328 | @end defmac | 328 | @end defmac |
| 329 | 329 | ||
| 330 | @anchor{Definition of nth} | ||
| 330 | @defun nth n list | 331 | @defun nth n list |
| 331 | This function returns the @var{n}th element of @var{list}. Elements | 332 | This function returns the @var{n}th element of @var{list}. Elements |
| 332 | are numbered starting with zero, so the @sc{car} of @var{list} is | 333 | are numbered starting with zero, so the @sc{car} of @var{list} is |
| @@ -391,6 +392,7 @@ this link is the list's last element. If @var{list} is null, | |||
| 391 | if @var{n} is bigger than @var{list}'s length. | 392 | if @var{n} is bigger than @var{list}'s length. |
| 392 | @end defun | 393 | @end defun |
| 393 | 394 | ||
| 395 | @anchor{Definition of safe-length} | ||
| 394 | @defun safe-length list | 396 | @defun safe-length list |
| 395 | This function returns the length of @var{list}, with no risk | 397 | This function returns the length of @var{list}, with no risk |
| 396 | of either an error or an infinite loop. | 398 | of either an error or an infinite loop. |
| @@ -565,7 +567,7 @@ object. The final argument is not copied or converted; it becomes the | |||
| 565 | @sc{cdr} of the last cons cell in the new list. If the final argument | 567 | @sc{cdr} of the last cons cell in the new list. If the final argument |
| 566 | is itself a list, then its elements become in effect elements of the | 568 | is itself a list, then its elements become in effect elements of the |
| 567 | result list. If the final element is not a list, the result is a | 569 | result list. If the final element is not a list, the result is a |
| 568 | ``dotted list'' since its final @sc{cdr} is not @code{nil} as required | 570 | dotted list since its final @sc{cdr} is not @code{nil} as required |
| 569 | in a true list. | 571 | in a true list. |
| 570 | 572 | ||
| 571 | In Emacs 20 and before, the @code{append} function also allowed | 573 | In Emacs 20 and before, the @code{append} function also allowed |
| @@ -708,7 +710,7 @@ x | |||
| 708 | @end defun | 710 | @end defun |
| 709 | 711 | ||
| 710 | @defun copy-tree tree &optional vecp | 712 | @defun copy-tree tree &optional vecp |
| 711 | This function returns a copy the tree @code{tree}. If @var{tree} is a | 713 | This function returns a copy of the tree @code{tree}. If @var{tree} is a |
| 712 | cons cell, this makes a new cons cell with the same @sc{car} and | 714 | cons cell, this makes a new cons cell with the same @sc{car} and |
| 713 | @sc{cdr}, then recursively copies the @sc{car} and @sc{cdr} in the | 715 | @sc{cdr}, then recursively copies the @sc{car} and @sc{cdr} in the |
| 714 | same way. | 716 | same way. |
| @@ -732,7 +734,7 @@ All arguments can be integers or floating point numbers. However, | |||
| 732 | floating point arguments can be tricky, because floating point | 734 | floating point arguments can be tricky, because floating point |
| 733 | arithmetic is inexact. For instance, depending on the machine, it may | 735 | arithmetic is inexact. For instance, depending on the machine, it may |
| 734 | quite well happen that @code{(number-sequence 0.4 0.6 0.2)} returns | 736 | quite well happen that @code{(number-sequence 0.4 0.6 0.2)} returns |
| 735 | the one element list @code{(0.4)}, whereas | 737 | the one element list @code{(0.4)}, whereas |
| 736 | @code{(number-sequence 0.4 0.8 0.2)} returns a list with three | 738 | @code{(number-sequence 0.4 0.8 0.2)} returns a list with three |
| 737 | elements. The @var{n}th element of the list is computed by the exact | 739 | elements. The @var{n}th element of the list is computed by the exact |
| 738 | formula @code{(+ @var{from} (* @var{n} @var{separation}))}. Thus, if | 740 | formula @code{(+ @var{from} (* @var{n} @var{separation}))}. Thus, if |