blob: 7bc901864680f846efa74d5f0efb8487dbfe8edc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
|