changeset 28556:5b1d0cd10db8

mapc
author Dave Love <fx@gnu.org>
date Wed, 12 Apr 2000 17:20:46 +0000
parents 976bc44944da
children 6f1d9b65d1f8
files etc/NEWS lispref/functions.texi
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Wed Apr 12 17:20:24 2000 +0000
+++ b/etc/NEWS	Wed Apr 12 17:20:46 2000 +0000
@@ -1102,6 +1102,9 @@
 When you add a new item, please add it without either +++ or ---
 so I will know I still need to look at it -- rms.
 
+** The new function `mapc' is like `mapcar' but doesn't collect the
+argument function's results.
+
 ** The functions base64-decode-region and base64-decode-string now
 signal an error instead of returning nil if decoding fails.
 
--- a/lispref/functions.texi	Wed Apr 12 17:20:24 2000 +0000
+++ b/lispref/functions.texi	Wed Apr 12 17:20:46 2000 +0000
@@ -748,6 +748,13 @@
 @end smallexample
 @end defun
 
+@defun mapc function sequence
+@tindex mapc
+@code{mapc} is like @code{mapcar} except that @var{function} is used for
+side-effects only---the values it returns are ignored, not collected
+into a list.  @code{mapc} always returns @var{sequence}.
+@end defun
+
 @defun mapconcat function sequence separator
 @code{mapconcat} applies @var{function} to each element of
 @var{sequence}: the results, which must be strings, are concatenated.