array

package
v0.0.0-...-3b69c6d Latest Latest
Warning

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

Go to latest
Published: Nov 23, 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

func Contains[T comparable](array []T, target T) bool

func Find

func Find[T any](array []T, predicate func(T) bool) (T, bool)

Returns the first element in the array that satisfies the predicate. If no element satisfies the predicate, the second return value is false.

func Map

func Map[T1, T2 any](array []T1, mapper func(T1) T2) []T2

Types

This section is empty.

Jump to

Keyboard shortcuts

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