Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!farquhar From: farquhar@cs.utexas.edu (Adam Farquhar) Newsgroups: comp.lang.lisp Subject: Re: Summing a list Summary: why doesn't reduce take keywords? Message-ID: <3780@cs.utexas.edu> Date: 28 Oct 88 16:39:42 GMT References: <10794@srcsip.UUCP> <10813@srcsip.UUCP> <249@pitstop.UUCP> Sender: news@cs.utexas.edu Organization: U. Texas CS Dept., Austin, Texas Lines: 9 Stylistically (reduce #'+ list) seems to be the best way to sum up the elements of a list. I have often been frustrated, however, by its inability to take the normal keyword arguments for sequence functions. For example, one would like to be able to say (reduce #'+ (list box1 box2 box3 box4) :key #'box-weight) Does anyone know why :key was left out? Is there an elegant way to do this in CL? Adam Farquhar