Skip to main content

7.1 Record Functions

function recordp object​

This function returns t if object is a record.

(recordp #s(a))
⇒ t

function record type \&rest objects​

This function creates and returns a record whose type is type and remaining slots are the rest of the arguments, objects.

(record 'foo 23 [bar baz] "rats")
⇒ #s(foo 23 [bar baz] "rats")

function make-record type length object​

This function returns a new record with type type and length more slots, each initialized to object.

(setq sleepy (make-record 'foo 9 'Z))
⇒ #s(foo Z Z Z Z Z Z Z Z Z)