itc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 Iterator

type Iterator[V any] func(func(V) bool)

func From

func From[V any](i func(func(V) bool)) Iterator[V]

func (Iterator[V]) Collect

func (iterator Iterator[V]) Collect() []V

func (Iterator[V]) Enumerate

func (i Iterator[V]) Enumerate() Iterator2[int, V]

func (Iterator[V]) Exclude

func (i Iterator[V]) Exclude(f func(V) bool) Iterator[V]

func (Iterator[V]) Filter

func (i Iterator[V]) Filter(f func(V) bool) Iterator[V]

func (Iterator[V]) Reverse

func (i Iterator[V]) Reverse() Iterator[V]

func (Iterator[V]) Seq

func (i Iterator[V]) Seq() iter.Seq[V]

func (Iterator[V]) Transform

func (i Iterator[V]) Transform(f func(V) V) Iterator[V]

func (Iterator[V]) TransformError

func (i Iterator[V]) TransformError(f func(V) (V, error)) Iterator2[V, error]

type Iterator2

type Iterator2[K, V any] func(func(K, V) bool)

func (Iterator2[V, V2]) Collect

func (iterator Iterator2[V, V2]) Collect() ([]V, []V2)

func (Iterator2[K, V]) Seq

func (i Iterator2[K, V]) Seq() iter.Seq2[K, V]

Jump to

Keyboard shortcuts

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