functional

package
v0.0.0-...-22e6c3c Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[T any](data *[]T, fn func(T) bool) bool

func Any

func Any[T any](data *[]T, fn func(T) bool) bool

func Cut

func Cut[T comparable](data *[]T, sep T) ([]T, []T, bool)

func Last

func Last[T any](data *[]T) T

func Map

func Map[T, V any](data *[]T, fn func(T) V) []V

func Reduce

func Reduce[T, V any](data *[]T, fn func(V, T) V, init V) V

func Split

func Split[T comparable](data *[]T, sep T) [][]T

func Sum

func Sum[N int | float64](data *[]N) N

Types

This section is empty.

Jump to

Keyboard shortcuts

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