Generic Lisp Wildcard for eql

Is there a wildcard in Common Lisp that equals eql to any atom?

That is, is there any pattern that

(eql wildcard any-atom)

returns true?

+3
source share
2 answers

No.

The purpose of EQL is to compare for equality of values ​​for some objects of a primitive type (numbers, symbols) and compare for identification for all other objects (symbols, arrays, ends, structures, streams, CLOS objects, ...).

, -, "" . EQL - . ? , , ?

Lisp. , cons.

+8

atom true, .

+9

Source: https://habr.com/ru/post/1770220/


All Articles