stream

package
v0.0.0-...-979367c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllMatch

func AllMatch[E comparable](s []E, e E) bool

func AllMatchFunc

func AllMatchFunc[E any](s []E, matchFunc func(E) bool) bool

func AnyMatch

func AnyMatch[E comparable](s []E, e E) bool

func AnyMatchFunc

func AnyMatchFunc[E any](s []E, matchFunc func(E) bool) bool

func Filter

func Filter[E any](s []E, filterFunc func(E) bool) (ret []E)

func GroupBy

func GroupBy[E any, K comparable](s []E, getKey func(E) K) map[K][]E

func Limit

func Limit[E any](s []E, n int) []E

func Map

func Map[E1, E2 any](s1 []E1, mapFunc func(E1) (E2, error)) (s2 []E2, e error)

func MustMap

func MustMap[E1, E2 any](s1 []E1, mapFunc func(E1) E2) (s2 []E2)

func Shuffle

func Shuffle[E any](s []E) (ret []E)

func Skip

func Skip[E any](s []E, n int) []E

func ToAny

func ToAny[E any](s []E) (ret []any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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