flatmap

package module
v0.0.0-...-f31b575 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatMap

type FlatMap[K cmp.Ordered, V any] struct {
	// contains filtered or unexported fields
}

func NewFlatMap

func NewFlatMap[K cmp.Ordered, V any](capacity int) *FlatMap[K, V]

func (*FlatMap[K, V]) All

func (f *FlatMap[K, V]) All() iter.Seq2[K, V]

func (*FlatMap[K, V]) Delete

func (f *FlatMap[K, V]) Delete(key K)

func (*FlatMap[K, V]) Get

func (f *FlatMap[K, V]) Get(key K) (V, bool)

func (*FlatMap[K, V]) Keys

func (f *FlatMap[K, V]) Keys() iter.Seq[K]

func (*FlatMap[K, V]) Length

func (f *FlatMap[K, V]) Length() int

func (*FlatMap[K, V]) Range

func (f *FlatMap[K, V]) Range() *FlatMapIter[K, V]

func (*FlatMap[K, V]) Reset

func (f *FlatMap[K, V]) Reset()

func (*FlatMap[K, V]) Set

func (f *FlatMap[K, V]) Set(key K, value V)

func (*FlatMap[K, V]) Values

func (f *FlatMap[K, V]) Values() iter.Seq[V]

type FlatMapIter

type FlatMapIter[K cmp.Ordered, V any] struct {
	// contains filtered or unexported fields
}

func (*FlatMapIter[K, V]) HasNext

func (fi *FlatMapIter[K, V]) HasNext() bool

func (*FlatMapIter[K, V]) Next

func (fi *FlatMapIter[K, V]) Next()

func (*FlatMapIter[K, V]) Val

func (fi *FlatMapIter[K, V]) Val() (K, V)

type Pair

type Pair[FirstType, SecondType any] struct {
	First  FirstType
	Second SecondType
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL