Documentation ¶
Index ¶
- type Bidelete
- type Bimap
- func (bi *Bimap[A, B]) A(a A) (b B, found bool)
- func (bi *Bimap[A, B]) Add(a A, b B) (bd Bidelete[A, B])
- func (bi *Bimap[A, B]) B(b B) (a A, found bool)
- func (bi *Bimap[A, B]) DeleteA(a A) (d Deleted[B])
- func (bi *Bimap[A, B]) DeleteB(b B) (d Deleted[A])
- func (bi *Bimap[A, B]) Each(fn func(a A, b B) bool)
- type Deleted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bidelete ¶
type Bidelete[A, B comparable] struct { A Deleted[A] B Deleted[B] }
type Bimap ¶
type Bimap[A, B comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[A, B comparable](size int) *Bimap[A, B]
type Deleted ¶
type Deleted[X comparable] struct { Value X Deleted bool }
Click to show internal directories.
Click to hide internal directories.