slices

package
v0.0.0-...-4b3731d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PFlatMap

func PFlatMap[I, O any](outerCtx context.Context, seq iter.Seq[I], threads int, f func(context.Context, I) ([]O, error)) ([]O, error)

PFlatMap just wraps PForEach in a closure to append values

func PForEach

func PForEach[I any](ctx context.Context, seq iter.Seq[I], threads int, f func(context.Context, I) error) error

func PMap

func PMap[I, O any](outerCtx context.Context, seq iter.Seq[I], threads int, f func(context.Context, I) (O, error)) ([]O, error)

PMap just wraps PFlatMap and returns a single-element list on success

Types

This section is empty.

Jump to

Keyboard shortcuts

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