[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REDUCE args
Date: Thu, 24 Jul 1986 13:11 EDT
Subject: REDUCE args
In-Reply-To: Msg of 24 Jul 1986 00:23-EDT from NGALL at G.BBN.COM
Does anybody else wish that REDUCE took a KEY argument, similarly to MEMBER.
(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 +.
YES! I ran into the same need a while back.