iter

package
v2.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapErr

func MapErr[T, R any](
	input []T,
	f func(*T) (R, error),
) ([]R, error)

MapErr is a concurrent version of Map that allows the mapping function to return an error. If one or more mapping operations return an error, MapErr returns the successfully mapped results along with a joined error containing all mapping errors. Mapping work is executed by up to runtime.GOMAXPROCS(0) worker goroutines. The returned results are ordered by completion time and may differ from the input order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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