[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use of mapcan
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: use of mapcan
- From: dxs@evolving.com (Dan Stanger)
- Date: Wed, 22 Feb 1995 14:52:48 -0700
- Cc: dxs@citadel.evolving.com
i have a question regarding mapcan used as a filter. if i want to avoid
possible problems of side effects can i just return a cons containing
the value i want to keep? for example
(defun x (a) (if (keep a) (cons a nil) nil))
and
(mapcan #'x '(a b c d)).
will this avoid possible problems?
thanks,
dan stanger