deftype
(deftype name lambda-list body...)
Defines name as a type for later typep/typecase tests and returns nil. The body returns the type specifier the name stands for (a (satisfies predicate) body calls the named predicate; the name may expand to another type name). For a parameterized deftype, a compound specifier (name args...) is what the body returns with the lambda list bound to args, an &optional or &key parameter without an init form defaulting to *; the bare name of one whose parameters are all optional means (name).