# HG changeset patch # User Dave Love # Date 955560046 0 # Node ID 5b1d0cd10db87dbd292cc28037847b582dcd25ee # Parent 976bc44944daa33535d30cb35ca2e5fd5e629668 mapc diff -r 976bc44944da -r 5b1d0cd10db8 etc/NEWS --- 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. diff -r 976bc44944da -r 5b1d0cd10db8 lispref/functions.texi --- 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.