Subject: Re: :test argument question
From: (Rob Warnock)
Date: Thu, 11 Sep 2003 06:13:08 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
Kimmo T Takkunen <> wrote:
| Is the order of parameters to :test function specified in the standard?

Yes. See CLHS "17.2.1 Satisfying a Two-Argument Test":

	A :TEST argument, if supplied to F, is a designator
	for a function of two arguments, O and Zi.

[where "Zi" is the value of the :KEY function, if any, or else is
an element "Ei" of the argument sequence.]

That is, with (FIND FOO <seq> :TEST #'BAR), FOO will always be the
first argument given to BAR.

| Can I use non-commutative test functions like '< etc.

Yes, you can, but be careful to ensure that the result would actually
be what you want it to be. (It might not always be obvious, e.g., with


Rob Warnock, PP-ASEL-IA		<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607