diff options
Diffstat (limited to 'devdocs/elisp/record-functions.html')
| -rw-r--r-- | devdocs/elisp/record-functions.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devdocs/elisp/record-functions.html b/devdocs/elisp/record-functions.html new file mode 100644 index 00000000..7bc90186 --- /dev/null +++ b/devdocs/elisp/record-functions.html @@ -0,0 +1,24 @@ + <h3 class="section">Record Functions</h3> <dl> <dt id="recordp">Function: <strong>recordp</strong> <em>object</em> +</dt> <dd> +<p>This function returns <code>t</code> if <var>object</var> is a record. </p> <div class="example"> <pre class="example">(recordp #s(a)) + ⇒ t +</pre> +</div> </dd> +</dl> <dl> <dt id="record">Function: <strong>record</strong> <em>type &rest objects</em> +</dt> <dd> +<p>This function creates and returns a record whose type is <var>type</var> and remaining slots are the rest of the arguments, <var>objects</var>. </p> <div class="example"> <pre class="example">(record 'foo 23 [bar baz] "rats") + ⇒ #s(foo 23 [bar baz] "rats") +</pre> +</div> </dd> +</dl> <dl> <dt id="make-record">Function: <strong>make-record</strong> <em>type length object</em> +</dt> <dd> +<p>This function returns a new record with type <var>type</var> and <var>length</var> more slots, each initialized to <var>object</var>. </p> <div class="example"> <pre class="example">(setq sleepy (make-record 'foo 9 'Z)) + ⇒ #s(foo Z Z Z Z Z Z Z Z Z) +</pre> +</div> </dd> +</dl><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br> + <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Record-Functions.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Record-Functions.html</a> + </p> +</div> |
