All Manuals > LispWorks® User Guide and Reference Manual > 38 The LISPWORKS Package

structurep Function

Summary

A predicate to check for structure objects.

Package

lispworks

Signature

structurep object => result

Arguments
object
A Lisp object.
Values
result
A generalized boolean.
Description

The function structurep returns true if object is of type structure-object and false otherwise.

Examples
(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