iter

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package iter is a backport of Go 1.23 official "iter" package, until we upgrade.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectWithErrors

func CollectWithErrors[V any](seq Seq2[V, error]) ([]V, error)

func FlattenWithErrors

func FlattenWithErrors[V any](seq Seq2[[]V, error]) ([]V, error)

Types

type Seq

type Seq[V any] func(yield func(V) bool)

type Seq2

type Seq2[K, V any] func(yield func(K, V) bool)

Jump to

Keyboard shortcuts

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