iterator

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[V any](it iter.Seq[V], cond func(V) bool) iter.Seq[V]

func Filter2

func Filter2[K, V any](it iter.Seq2[K, V], cond func(K, V) bool) iter.Seq2[K, V]

func First

func First[K, V any](it iter.Seq2[K, V]) iter.Seq[K]

func ForEach

func ForEach[V any](it iter.Seq[V], fn func(V))

func ForEach2

func ForEach2[K, V any](it iter.Seq2[K, V], fn func(K, V))

func Map

func Map[V1, V2 any](it iter.Seq[V1], mapper func(V1) V2) iter.Seq[V2]

func Map2

func Map2[K1, V1, K2, V2 any](it iter.Seq2[K1, V1], mapper func(K1, V1) (K2, V2)) iter.Seq2[K2, V2]

func Second

func Second[K, V any](it iter.Seq2[K, V]) iter.Seq[V]

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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