A predicate to check for structure objects.
lispworks
structurep object => result
object⇩ |
A Lisp object. |
result |
A generalized boolean. |
The function structurep
returns true if object is of type structure-object and false otherwise.
(structurep #(1 2 3)) => nil
Given the definition:
(defstruct my-struct a)
then:
(structurep (make-my-struct)) => t
but metaclasses are not structures so:
(structurep (find-class 'my-struct)) => nil
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:41