selecta

package module
v0.0.0-...-b6bc5eb Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 0 Imported by: 0

README

go-selecta

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (bool, error)

func Any

func Any[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (bool, error)

func ForEach

func ForEach[I ~[]IT, IT any](input I, action func(IT) error) error

func GroupBy

func GroupBy[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) ([][]IT, error)

func GroupToMap

func GroupToMap[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) (map[K][]IT, error)

func IndexOf

func IndexOf[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (int, error)

func MapToSlice

func MapToSlice[I ~map[K]V, K comparable, V, N any](input I, action func(K, V) (N, error)) ([]N, error)

func Select

func Select[I ~[]IT, O ~[]OT, IT, OT any](input I, action func(IT) (OT, error)) (O, error)

func SelectWhere

func SelectWhere[I ~[]IT, O ~[]OT, IT, OT any](input I, action func(IT) (bool, OT, error)) (O, error)

func Where

func Where[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (I, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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