diff options
| author | Dave Love | 2000-04-12 17:20:46 +0000 |
|---|---|---|
| committer | Dave Love | 2000-04-12 17:20:46 +0000 |
| commit | 3c30cb6e7ed8fd1d1f4e9ca0722f646f663291ce (patch) | |
| tree | 1f55133181ca18aef26ca7884bb8bf2af03928fe | |
| parent | f5c750339f6c4225cd1a2590757422531a12526c (diff) | |
| download | emacs-3c30cb6e7ed8fd1d1f4e9ca0722f646f663291ce.tar.gz emacs-3c30cb6e7ed8fd1d1f4e9ca0722f646f663291ce.zip | |
mapc
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lispref/functions.texi | 7 |
2 files changed, 10 insertions, 0 deletions
| @@ -1102,6 +1102,9 @@ Note that +++ before an item means the Lisp manual has been updated. | |||
| 1102 | When you add a new item, please add it without either +++ or --- | 1102 | When you add a new item, please add it without either +++ or --- |
| 1103 | so I will know I still need to look at it -- rms. | 1103 | so I will know I still need to look at it -- rms. |
| 1104 | 1104 | ||
| 1105 | ** The new function `mapc' is like `mapcar' but doesn't collect the | ||
| 1106 | argument function's results. | ||
| 1107 | |||
| 1105 | ** The functions base64-decode-region and base64-decode-string now | 1108 | ** The functions base64-decode-region and base64-decode-string now |
| 1106 | signal an error instead of returning nil if decoding fails. | 1109 | signal an error instead of returning nil if decoding fails. |
| 1107 | 1110 | ||
diff --git a/lispref/functions.texi b/lispref/functions.texi index e4241d9a967..6cdcb6bce1b 100644 --- a/lispref/functions.texi +++ b/lispref/functions.texi | |||
| @@ -748,6 +748,13 @@ Return the list of results." | |||
| 748 | @end smallexample | 748 | @end smallexample |
| 749 | @end defun | 749 | @end defun |
| 750 | 750 | ||
| 751 | @defun mapc function sequence | ||
| 752 | @tindex mapc | ||
| 753 | @code{mapc} is like @code{mapcar} except that @var{function} is used for | ||
| 754 | side-effects only---the values it returns are ignored, not collected | ||
| 755 | into a list. @code{mapc} always returns @var{sequence}. | ||
| 756 | @end defun | ||
| 757 | |||
| 751 | @defun mapconcat function sequence separator | 758 | @defun mapconcat function sequence separator |
| 752 | @code{mapconcat} applies @var{function} to each element of | 759 | @code{mapconcat} applies @var{function} to each element of |
| 753 | @var{sequence}: the results, which must be strings, are concatenated. | 760 | @var{sequence}: the results, which must be strings, are concatenated. |