Function: hash-table-count

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

Signature

(hash-table-count TABLE)

Documentation

Return the number of elements in TABLE.

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

Probably introduced at or before Emacs version 21.1.

Shortdoc

;; hash-table
(hash-table-count table)
    e.g. => 15

Aliases

cl-hash-table-count (obsolete since 24.3)

Source Code

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