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

NextPrevUpTopContentsIndex

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 - 13 Feb 2015

NextPrevUpTopContentsIndex