From ... From: Erik Naggum Subject: Re: another weird question Date: 2000/02/28 Message-ID: <3160714423567167@naggum.no>#1/1 X-Deja-AN: 590761318 References: <889e1n$qjp$1@nnrp1.deja.com> <38A8D19D.C3B5CA15@fisec.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 951726536 4256 195.0.192.66 (28 Feb 2000 08:28:56 GMT) Organization: Naggum Software; +47 8800 8879 or +1 510 435 8604; fax: +47 2210 9077; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 28 Feb 2000 08:28:56 GMT Newsgroups: comp.lang.lisp * 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. #:Erik