[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue: FUNCTION-COMPOSITION (Version 2)
- To: KMP@stony-brook.scrc.symbolics.com
- Subject: Issue: FUNCTION-COMPOSITION (Version 2)
- From: gls@Think.COM
- Date: Wed, 5 Oct 88 16:32:02 EDT
- Cc: CL-Cleanup@sail.stanford.edu
- In-reply-to: Kent M Pitman's message of Wed, 5 Oct 88 14:00 EDT <881005140026.3.KMP@BOBOLINK.SCRC.Symbolics.COM>
Date: Wed, 5 Oct 88 14:00 EDT
From: Kent M Pitman <KMP@stony-brook.scrc.symbolics.com>
...
Issue: FUNCTION-COMPOSITION
References: None
Category: ADDITION
Edit history: 21-Jun-88, Version 1 by Pitman
05-Oct-88, Version 2 by Pitman
Status: For Internal Discussion
Related-Issues: TEST-NOT-IF-NOT
...
Cost to Implementors:
A straightforward implementation is simple to cook up. The definitions
given here would suffice. Typically some additional work might be
desirable to make these open code in interesting ways.
(DEFUN COMPOSE (&REST FUNCTIONS)
(COND ((NOT FUNCTIONS)
(ERROR "COMPOSE requires at least one function."))
...
Sorry I didn't catch this earlier. I believe that this should read
(COND ((NULL FUNCTIONS) #'IDENTITY)
...
(1) IDENTITY is the identity element for the COMPOSE operation.
(Actually not quite, in the case where the rightmost function
accepts more than one argument, but close enough.)
(2) NULL is more appropriate than NOT (this is a nit).
--Guy