Subject: Re: another weird question
From: Erik Naggum <erik@naggum.no>
Date: 2000/02/28
Newsgroups: comp.lang.lisp
Message-ID: <3160714423567167@naggum.no>

* Philip Nikolayev <nikolay@is02.fas.harvard.edu>
| If I wanted to replace all the whole reals, such as 3.0, in a list with
| their integer equivalents, while leaving all the other reals intact, is
| there an easy way to do this?

  consider a function f that accepts a number and returns the corresponding
  integer if the number satisfies a predicate whole-real-p, or the number
  unchanged if not.  apply this function to every element of the list with
  a suitable mapping function.  you don't want this operation to destroy
  the original list of values.

#:Erik