Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hashmap ¶
type Hashmap[K comparable, V any] interface { // gets the value for the given key. // returns zero value for <V> if there is no value for the given key Get(key K) V // gets the value for the given key and the flag indicating whether the value exists // returns zero value for <V> and false if there is no value for the given key Get2(key K) (V, bool) // puts value into the map Put(key K, value V) // deletes an element from the map Delete(key K) // iterates through the map and calls the given func for each key, value. // if the given func returns false, loop breaks. Range(f func(k K, v V) bool) // returns the length of the map Len() int String() string }
Click to show internal directories.
Click to hide internal directories.