slices

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, bool]

func Filter added in v0.0.13

func Filter[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, []T]
func Head[T any](ts []T) T

func Map

func Map[V any, V1 any](mapper funcs.Mapper[V, V1]) funcs.Applier[[]V, []V1]

func Tail added in v0.0.9

func Tail[T any](ts []T) []T

func ToMapWithValues

func ToMapWithValues[K comparable, V any](valueGenerator func(i int, k K) V) funcs.Applier[[]K, 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