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

* Philip Nikolayev <>
| 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.