Help us shape the future of Go! Take the 2026 Go Developer Survey

itertools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect[T any](i iter.Seq[T]) []T

func Dedup

func Dedup[T any, U comparable](seq iter.Seq[T], key func(T) U) iter.Seq[T]

func Filter

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

func Find

func Find[T any](seq iter.Seq[T], f func(T) bool) option.Option[T]

func Flatten

func Flatten[T any](seq iter.Seq[[]T]) iter.Seq[T]

func ForEach

func ForEach[T any](i iter.Seq[T], fn func(T))

func FromSlice

func FromSlice[T any](slice []T) iter.Seq[T]

func Map

func Map[T any, U any](i iter.Seq[T], mapping func(T) U) iter.Seq[U]

Types

This section is empty.

Jump to

Keyboard shortcuts

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