slice

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](slice []T, element T) bool

func Filter

func Filter[T any](ctx context.Context, slice []T, predicate function.Predicate[T]) []T

func ForEach

func ForEach[T any](ctx context.Context, slice []T, consumer function.Consumer[T])

func Map

func Map[S any, T any](ctx context.Context, slice []S, function function.Function[S, T]) []T

func Reduce

func Reduce[T any](ctx context.Context, slice []T, operator function.Operator[T]) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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