Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!tank!ncar!boulder!andreasg From: andreasg@boulder.Colorado.EDU (Andreas Girgensohn) Newsgroups: comp.lang.lisp Subject: Re: Summing a list Message-ID: <4293@boulder.Colorado.EDU> Date: 26 Oct 88 03:15:25 GMT References: <10794@srcsip.UUCP> <10813@srcsip.UUCP> Sender: news@boulder.Colorado.EDU Reply-To: andreasg@boulder.Colorado.EDU (Andreas Girgensohn) Organization: University of Colorado, Boulder Lines: 12 A better way is the following form because eval invokes the interpreter and produces a lot of garbage. The dolist example should be much faster in compiled code. (apply '+ numlist) The difference is that apply doesn't evaluate the elements of the list whereas eval does it. It's no difference is this case because numbers (the elements of the list) are evaluate to themselves. Andreas Girgensohn andreasg@boulder.colorado.edu