collections

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](elems []T, elem T) bool

func Convert

func Convert[T any, P any](items []T, converterF func(T) P) []P

func FilterBy

func FilterBy[T any](items []T, filterF func(T) bool) []T

func Keys

func Keys[T any, K comparable](m map[K]T) []K

func SortBy

func SortBy[T any](items []T, lessF func(T, T) bool) []T

func ToIndexMap

func ToIndexMap[T comparable](items []T) map[T]bool

func ToMap

func ToMap[T any, K comparable](items []T, keyF func(T) K) map[K]T

func Values

func Values[T any, K comparable](m map[K]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