fun

package
v0.0.0-...-78b1a76 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count[T any, S ~[]T](s S, pred func(v T) bool) int

func Every

func Every[T any, S ~[]T](s S, pred func(v T) bool) bool

func FieldsToInt64

func FieldsToInt64(input string) []int64

func Filter

func Filter[T any, S ~[]T](s S, pred func(v T) bool) S

func Map

func Map[T any, R any, S ~[]T](s S, pred func(v T) R) []R

func Max

func Max[T constraints.Integer](s []T) T

func Min

func Min[T constraints.Integer](s []T) T

func Product

func Product[T constraints.Integer](s []T) T

func Reduce

func Reduce[T any, R any, S ~[]T](s S, pred func(v T, prev R) R, init R) R

func Split

func Split[T any, S ~[]T](s S, pred func(v T) bool) []S

func Sum

func Sum[T constraints.Integer](s []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