ggslice

package
v0.0.0-...-02ce2e9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fold

func Fold[From, To any](vs []From, initial To, f func(int, To, From) To) To

func FoldErr

func FoldErr[From, To any](vs []From, initial To, f func(int, To, From) (To, error)) (To, error)

func Map

func Map[From, To any](vs []From, f func(int, From) To) []To

func MapErr

func MapErr[From, To any](vs []From, f func(int, From) (To, error)) ([]To, error)

func Sort

func Sort[T constraints.Ordered](ts []T)

func SortByField

func SortByField[T any, Field constraints.Ordered](ts []T, f func(T) Field)

Types

This section is empty.

Jump to

Keyboard shortcuts

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