Common Lisp: where is default test for MEMBER, FIND, and POSITION specified?

Viewed 96

I'm looking at the Common Lisp HyperSpec and I don't see where the default test for MEMBER, FIND, and POSITION is specified. Am I overlooking something obvious?

Word on the street is that EQL is the default test, but I would feel more comfortable knowing that's in the spec somewhere.

1 Answers

This can be found here in the HyperSpec: 17.2.1 Satisfying a Two-Argument Test. A list of sequence functions, including member, find, and position, is given. These functions take a two-argument :test or :test-not argument.

If neither a :test nor a :test-not argument is supplied, it is as if a :test argument of #'eql was supplied.

Related