colls

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.16.14

func Contains[T comparable](collection []T, element T) bool

Contains returns true if an element is present in a collection.

func Keys

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

func Map

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

func Values added in v0.16.14

func Values[K comparable, V any](in ...map[K]V) []V

Values creates an array of the map values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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