slice

package
v0.0.0-...-487cccc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](s []T, f func(T) bool) []T

func ForEach

func ForEach[T any](s []T, f func(T))

func Map

func Map[T, U any](s []T, f func(T) U) []U

func Reduce

func Reduce[T any, U any](s []T, f func(U, T) U, init U) U

func ToMap

func ToMap[K comparable, T, V any](s []T, f func(T) (K, V)) map[K]V

Types

This section is empty.

Jump to

Keyboard shortcuts

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