summaryrefslogtreecommitdiff
path: root/devdocs/elisp/other-hash.html
blob: 54874cbcfa3263a5bed037093dedf0715c58d931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 <h3 class="section">Other Hash Table Functions</h3> <p>Here are some other functions for working with hash tables. </p> <dl> <dt id="hash-table-p">Function: <strong>hash-table-p</strong> <em>table</em>
</dt> <dd><p>This returns non-<code>nil</code> if <var>table</var> is a hash table object. </p></dd>
</dl> <dl> <dt id="copy-hash-table">Function: <strong>copy-hash-table</strong> <em>table</em>
</dt> <dd><p>This function creates and returns a copy of <var>table</var>. Only the table itself is copied—the keys and values are shared. </p></dd>
</dl> <dl> <dt id="hash-table-count">Function: <strong>hash-table-count</strong> <em>table</em>
</dt> <dd><p>This function returns the actual number of entries in <var>table</var>. </p></dd>
</dl> <dl> <dt id="hash-table-test">Function: <strong>hash-table-test</strong> <em>table</em>
</dt> <dd><p>This returns the <var>test</var> value that was given when <var>table</var> was created, to specify how to hash and compare keys. See <code>make-hash-table</code> (see <a href="creating-hash">Creating Hash</a>). </p></dd>
</dl> <dl> <dt id="hash-table-weakness">Function: <strong>hash-table-weakness</strong> <em>table</em>
</dt> <dd><p>This function returns the <var>weak</var> value that was specified for hash table <var>table</var>. </p></dd>
</dl> <dl> <dt id="hash-table-rehash-size">Function: <strong>hash-table-rehash-size</strong> <em>table</em>
</dt> <dd><p>This returns the rehash size of <var>table</var>. </p></dd>
</dl> <dl> <dt id="hash-table-rehash-threshold">Function: <strong>hash-table-rehash-threshold</strong> <em>table</em>
</dt> <dd><p>This returns the rehash threshold of <var>table</var>. </p></dd>
</dl> <dl> <dt id="hash-table-size">Function: <strong>hash-table-size</strong> <em>table</em>
</dt> <dd><p>This returns the current nominal size of <var>table</var>. </p></dd>
</dl><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 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/Other-Hash.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Other-Hash.html</a>
  </p>
</div>