HashTable.single

Checks if there is exactly one entry in the table.

Arguments

None

Return values

condition
is TRUE if there is a single entry, FALSE otherwise.

Complexity

Constant

Example

"sl/hashTable" useFile a: HashTable; a.single print LF print 35 "element" a.insert a.single print
Output:
FALSE TRUE