1 (in-package :alexandria
)
3 (declaim (inline of-type
))
5 "Returns a function of one argument, which returns true when its argument is
7 (lambda (thing) (typep thing type
)))
9 (declaim (inline type
=))
10 (defun type= (type1 type2
)
11 "Returns a primary value of T is TYPE1 and TYPE2 are the same type,
12 and a secondary value that is true is the type equality could be reliably
13 determined: primary value of NIL and secondary value of T indicates that the
14 types are not equivalent."
15 (multiple-value-bind (sub ok
) (subtypep type1 type2
)
17 (subtypep type2 type1
))
21 (multiple-value-bind (sub ok
) (subtypep type2 type1
)
22 (declare (ignore sub
))