itertools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach[K, V any](seq iter.Seq[K], v V) iter.Seq2[K, V]

func Cat

func Cat[T any](seqs ...iter.Seq[T]) iter.Seq[T]

func Cat2

func Cat2[K, V any](seqs ...iter.Seq2[K, V]) iter.Seq2[K, V]

func Filter

func Filter[T any](seq iter.Seq[T], pred func(T) bool) iter.Seq[T]

func Filter2

func Filter2[K, V any](seq iter.Seq2[K, V], pred func(K, V) bool) iter.Seq2[K, V]

func First

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

func Map

func Map[Vin, Vout any](seq iter.Seq[Vin], transform func(Vin) Vout) iter.Seq[Vout]

func Map2

func Map2[Kin, Vin, Kout, Vout any](seq iter.Seq2[Kin, Vin], transform func(Kin, Vin) (Kout, Vout)) iter.Seq2[Kout, Vout]

func Map12

func Map12[Vin, Kout, Vout any](seq iter.Seq[Vin], transform func(Vin) (Kout, Vout)) iter.Seq2[Kout, Vout]

func Map21

func Map21[Kin, Vin, Vout any](seq iter.Seq2[Kin, Vin], transform func(Kin, Vin) Vout) iter.Seq[Vout]

func Range

func Range[Int constraints.Unsigned](start, end Int) iter.Seq[Int]

func Stringify

func Stringify[V fmt.Stringer](seq iter.Seq[V]) iter.Seq[string]

func Swap

func Swap[K, V any](seq iter.Seq2[K, V]) iter.Seq2[V, K]

Types

This section is empty.

Jump to

Keyboard shortcuts

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