[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REDUCE args



    Date: 24 Jul 1986 13:39-EDT
    Sender: NGALL@G.BBN.COM
    Subject: Re: REDUCE args
    From: NGALL@G.BBN.COM
    To: ALR%OZ.AI.MIT.EDU@XX.LCS.MIT.EDU
    Cc: common-lisp@SU-AI.ARPA
    Message-Id: <[G.BBN.COM]24-Jul-86 13:39:15.NGALL>
    In-Reply-To: <ALR.12225273192.BABYL@MIT-OZ>

	
	Date: Thu, 24 Jul 1986  13:11 EDT
	From: ALR%OZ.AI.MIT.EDU@XX.LCS.MIT.EDU
	To:   common-lisp@SU-AI.ARPA
	Subject: REDUCE args
	In-Reply-To: Msg of 24 Jul 1986  00:23-EDT from NGALL at G.BBN.COM
	Message-ID: <ALR.12225273192.BABYL@MIT-OZ>
    
	Does anybody else wish that REDUCE took a KEY argument, similarly to MEMBER.
	i.e.
    
	(reduce #'+ list-of-objects :KEY #'object-quantity)
    
	would apply the function OBJECT-QUANTITY to each element of the
	list-of-objects before reducing it with +.
    
	Andrew
    
		  --------------------
		
    YES!  I ran into the same need a while back.

    -- Nick

I third it. A good hack.
Brad Miller