[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

This page is part of the web mail archives of SRFI 69 from before July 7th, 2015. The new archives for SRFI 69 contain all messages, not just those from before July 7th, 2015.

*To*: Sven.Hartrumpf@xxxxxxxxxxxxxxxx*Subject*: Re: SRFI-69: hash-table-size*From*: David Van Horn <dvanhorn@xxxxxxxxxxxxxxx>*Date*: Thu, 04 Aug 2005 11:04:06 -0400*Cc*: srfi-69@xxxxxxxxxxxxxxxxx*Delivered-to*: srfi-69@xxxxxxxxxxxxxxxxx*In-reply-to*: <20050804.155652.85261624.Sven.Hartrumpf@xxxxxxxxxxxxxxxx>*References*: <20050804.155652.85261624.Sven.Hartrumpf@xxxxxxxxxxxxxxxx>*User-agent*: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6b) Gecko/20031206 Thunderbird/0.4

Sven.Hartrumpf@xxxxxxxxxxxxxxxx wrote:

Hi Felix and Panu, dear list readers. If I understand correctly, we have this confusing mixture: chicken SRFI-69 meaning 1. hash-table-size - number of buckets or so 2. hash-table-count hash-table-size number of associations

Any more preexisting "naming art"?

Size versus Length Most collections possess a concept of size. The size of a collection is the number of values or mappings it currently contains. This differs from the concept of length in Scheme datastructures, which corresponds to the number of cons cells or vector slots the structure contains. A collection may contain more cells or slots than required to contain its values or mappings. An example might be a hashtable collection, which may at any given time contain numerous unoccupied, discontiguous cells. This matter is confused by the collections specified in this API, whose size and length are the same. Put another way, collection-size should return the number of enumeration steps that will occur, if known.

Bigloo ------ hashtable-size table bigloo procedure Returns the number of entries contained in table. Chez ---- [Has a hash table data type, but no size/length operation] Gauche ------ Function: hash-table-num-entries ht Returns the number of entries in the hash table ht. Guile ----- [Has a hash table data type, but no size/length operation] Kawa ---- [Kawa has no hash table data type] Scheme 48 --------- [Has a hash table data type, but no size/length operation] Larceny ------- [From scanning larceny_src/Docs, I see no hash table data type] PLT ---

RScheme ------- table-size -- Computes the number of keys in the table. SCM --- [Doesn't appear to have a hash table data type, but supports SLIB which does.] Scsh ---- [Uses Scheme 48 hash tables] SISC ---- procedure: (hashtable/size hashtable) => number Returns the number of key/value pairs stored in hashtable. SLIB ---- [Has a hash table data type, but no size/length operation] SXM --- [I could find no documentation]

**Follow-Ups**:**Re: SRFI-69: hash-table-size***From:*Panu

**References**:**SRFI-69: hash-table-size***From:*Sven . Hartrumpf

- Prev by Date:
**Re: SRFI-69: hash-table-size** - Next by Date:
**Re: SRFI-69: hash-table-size** - Previous by thread:
**Re: SRFI-69: hash-table-size** - Next by thread:
**Re: SRFI-69: hash-table-size** - Index(es):