Debian Codegraph @

info/gcl/hash_002dtable_002drehash_002dsize.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>hash-table-rehash-size (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="hash-table-rehash-size (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="hash-table-rehash-size (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Hash-Tables-Dictionary.html" rel="up" title="Hash Tables Dictionary">
15 <link href="hash_002dtable_002drehash_002dthreshold.html" rel="next" title="hash-table-rehash-threshold">
16 <link href="hash_002dtable_002dcount.html" rel="prev" title="hash-table-count">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="hash_002dtable_002drehash_002dsize"></span><div class="header">
41 <p>
42 Next: <a href="hash_002dtable_002drehash_002dthreshold.html" accesskey="n" rel="next">hash-table-rehash-threshold</a>, Previous: <a href="hash_002dtable_002dcount.html" accesskey="p" rel="prev">hash-table-count</a>, Up: <a href="Hash-Tables-Dictionary.html" accesskey="u" rel="up">Hash Tables Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="hash_002dtable_002drehash_002dsize-_005bFunction_005d"></span><h4 class="subsection">18.2.5 hash-table-rehash-size [Function]</h4>
46
47 <p><code>hash-table-rehash-size</code> <i>hash-table</i> &rArr; <i>rehash-size</i>
48 </p>
49 <span id="Arguments-and-Values_003a_003a-379"></span><h4 class="subsubheading">Arguments and Values::</h4>
50
51 <p><i>hash-table</i>&mdash;a <i>hash table</i>.
52 </p>
53 <p><i>rehash-size</i>&mdash;a <i>real</i> of <i>type</i> <tt>(or (integer 1 *) (float (1.0) *))</tt>.
54 </p>
55 <span id="Description_003a_003a-495"></span><h4 class="subsubheading">Description::</h4>
56
57 <p>Returns the current rehash size of <i>hash-table</i>,
58 suitable for use in a call to <b>make-hash-table</b>
59 in order to produce a <i>hash table</i>
60 with state corresponding to the current state of the <i>hash-table</i>.
61 </p>
62 <span id="Examples_003a_003a-361"></span><h4 class="subsubheading">Examples::</h4>
63
64 <div class="example">
65 <pre class="example"> (setq table (make-hash-table :size 100 :rehash-size 1.4))
66 &rArr; #&lt;HASH-TABLE EQL 0/100 2556371&gt;
67 (hash-table-rehash-size table) &rArr; 1.4
68 </pre></div>
69
70 <span id="Exceptional-Situations_003a_003a-169"></span><h4 class="subsubheading">Exceptional Situations::</h4>
71
72 <p>Should signal an error of <i>type</i> <b>type-error</b>
73 if <i>hash-table</i> is not a <i>hash table</i>.
74 </p>
75 <span id="See-Also_003a_003a-404"></span><h4 class="subsubheading">See Also::</h4>
76
77 <p><a href="make_002dhash_002dtable.html">make-hash-table</a>
78 ,
79 <a href="hash_002dtable_002drehash_002dthreshold.html">hash-table-rehash-threshold</a>
80 </p>
81 <span id="Notes_003a_003a-272"></span><h4 class="subsubheading">Notes::</h4>
82
83 <p>If the hash table was created with an <i>integer</i> rehash size,
84 the result is an <i>integer</i>,
85 indicating that the rate of growth of the <i>hash-table</i> when rehashed
86 is intended to be additive;
87 otherwise,
88 the result is a <i>float</i>,
89 indicating that the rate of growth of the <i>hash-table</i> when rehashed
90 is intended to be multiplicative.
91 However, this value is only advice to the <i>implementation</i>;
92 the actual amount by which the <i>hash-table</i> will grow upon rehash is
93 <i>implementation-dependent</i>.
94 </p>
95
96
97
98 </body>
99 </html>