2 ms·
Common Lisp in fact has type expressions with set operations. $ clisp -q [1]> (typep nil '(and symbol list)) T [2]> (typep :foo '(and symbol list)) N
by kazinator 11y ago
Common Lisp in fact has type expressions with set operations.
$ clisp -q
[1]> (typep nil '(and symbol list))
T
[2]> (typep :foo '(and symbol list))
NIL
[3]> (typep '(1 2) '(and symbol list))
NIL
[4]> (typep '(1 2) '(or symbol list))
T
[5]> (typep 3 '(or symbol list)
I.e. I can in fact talk about sets of objects, in a formal way, with the Lisp system.