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

Inconsistent keywords for sequence functions



Why do most of the sequence functions have the :key keyword but
reduce doesn't?  Why isn't there a reduce-if and a reduce-if-not?
An example which came up recently is

(reduce #'+ box-contents :key #'weight)

which should return the sum of the weights of the objects in the box.

Don Mitchell	  		Don@atc.bendix.com
Bendix Aero. Tech. Ctr.		Don%atc.bendix.com@relay.cs.net
9140 Old Annapolis Rd.		(301)964-4156
Columbia, MD 21045