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)

Copyright © 1990-1996, 1998-2021 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Record-Functions.html