Function: hash-table-size

hash-table-size is a function defined in fns.c.

Signature

(hash-table-size TABLE)

Documentation

Return the size of TABLE.

The size can be used as an argument to make-hash-table to create a hash table than can hold as many elements as TABLE holds without need for resizing.

Other relevant functions are documented in the hash-table group.

View in manual

Shortdoc

;; hash-table
(hash-table-size table)
    e.g. => 65

Source Code

// Defined in /usr/src/emacs/src/fns.c
{
  struct Lisp_Hash_Table *h = check_hash_table (table);
  return make_fixnum (HASH_TABLE_SIZE (h));
}