HashTable.makeRange

Creates a range that points to all entries of the table.

Arguments

None

Return values

range
pointing to all entries of the table (see Range).

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 r: a.makeRange; r [print LF print TRUE] enum
Output:
{ key: 35; value: "element"; } { key: 19; value: "nineteen"; } { key: 0; value: "ZERO"; } { key: 32; value: "{ a: 0; b: 1; }; } { key: 34; value: "element"; } { key: 34; value: 135; } { key: -25; value: "element"; }