[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Inconsistent keywords for sequence functions
- To: common-lisp@SAIL.STANFORD.EDU
- Subject: Inconsistent keywords for sequence functions
- From: DON%atc.bendix.com@RELAY.CS.NET
- Date: Mon, 13 Apr 87 14:07 EDT
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. Donfirstname.lastname@example.org
9140 Old Annapolis Rd. (301)964-4156
Columbia, MD 21045