utils

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterable

type Iterable[V any] interface {

	// Get an iterator for the collection
	// Returns: iter.
	Iterator() iter.Seq[V]
}

type Iterable2

type Iterable2[K any, V any] interface {

	// Get an iterator for the collection
	// Returns: iter.
	Iterator() iter.Seq2[K, V]
}

type IteratorTransform

type IteratorTransform[I any, O any] struct {
	Inner     Iterable[I]
	Transform func(I) O
}

func (*IteratorTransform[I, O]) Iterator

func (it *IteratorTransform[I, O]) Iterator() iter.Seq[O]

Jump to

Keyboard shortcuts

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