Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BiMap ¶
type BiMap[K comparable, V comparable] struct { // contains filtered or unexported fields }
func NewBiMap ¶
func NewBiMap[K comparable, V comparable]() *BiMap[K, V]
NewBiMap returns a new empty, mutable BiMap.
func NewBiMapFromMap ¶
func NewBiMapFromMap[K comparable, V comparable](forwardMap map[K]V) *BiMap[K, V]
NewBiMapFromMap returns a new BiMap from a map[K, V].
func (*BiMap[K, V]) ExistsInverse ¶
ExistsInverse checks whether or not a value exists in the BiMap.
func (*BiMap[K, V]) Get ¶
Get returns the value for a given key in the BiMap and whether or not the element was present.
func (*BiMap[K, V]) GetInverse ¶
GetInverse returns the key for a given value in the BiMap and whether or not the element was present.
Click to show internal directories.
Click to hide internal directories.