Man
Container
HashTable
getSize
HashTable.getSize
Returns the number of elements in the table.
Arguments
None
Return values
size
as an integer number.
Complexity
Constant
Example
"sl/hashTable" useFile a: HashTable; 35 "element" a.insert 0 "ZERO" a.insert 34 "element" a.insert -25 "element" a.insert 19 "nineteen" a.insert 34n8 135 a.insert 32 { a:0; b:1; } a.insert a.getSize print
Output:
7