slice

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 0 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.2.0

func Contains[T comparable](slice []T, value T) bool

Contains scans a slice for a matching value, and returns TRUE if the value is found.

func Equal added in v0.5.1

func Equal[T comparable](value1 []T, value2 []T) bool

Equal returns true if the two slices are identical, having the same items in the same order, with no alterations.

func Filter

func Filter[T any](original []T, keep func(T) bool) []T

func First added in v0.11.0

func First[T any](original []T, keep func(T) bool) T

func Map

func Map[T1 any, T2 any](source []T1, delta 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