dear list,
is there any objections against this?
(declaim (inline length=1))
(defun length=1 (sequence)
(if (listp sequence)
(and sequence
(null (rest sequence)))
(= 1 (length sequence
in optimized code, where type information is available, it drops the
type check.
On 2/22/08, Attila Lendvai [EMAIL PROTECTED] wrote:
but to be specific about length=1:
Hah, I had forgotten we already had SEQUENCE-OF-LENGTH-P :)
In that case my only objection to length=1 is the name, which is...
not ugly per se, but introduces a new naming convention. No, I don't
have any