slice

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T comparable](arr []T, filterFn func(v T) bool) []T

func Find

func Find[T any](list []T, f func(t T) bool) (T, bool)

func Map

func Map[T, R any](list []T, f func(t T) R) []R

func MapValuesToSlice

func MapValuesToSlice[K comparable, V any](m map[K]V) []V

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳