pipeline

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference[T comparable](first []T, second []T) []T

func ExtractMapValues

func ExtractMapValues[TKey comparable, TValue any](m map[TKey]TValue) []TValue

func Filter

func Filter[In any](in []In, d func(i In) (bool, error)) ([]In, error)

func Flatten

func Flatten[TValue any](in [][]TValue) []TValue

func IndexOf

func IndexOf[T comparable](collection []T, item T) int

func JoinToCamelCase

func JoinToCamelCase(stringSlice []string) string

func Map

func Map[In any, Out any](in []In, d Mapper[In, Out]) ([]Out, error)

func MustFilter

func MustFilter[In any](in []In, d func(i In) bool) []In

func MustMap

func MustMap[In any, Out any](in []In, d func(i In) Out) []Out

Types

type Enumerable

type Enumerable[T comparable] []T

func (Enumerable[T]) Filter

func (e Enumerable[T]) Filter(d func(i T) bool) Enumerable[T]

func (Enumerable[T]) IndexOf

func (e Enumerable[T]) IndexOf(item T) int

func (Enumerable[T]) Slice

func (e Enumerable[T]) Slice() []T

type Mapper

type Mapper[In any, Out any] func(i In) (Out, error)

Jump to

Keyboard shortcuts

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