slice

package
v0.0.0-...-503c688 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllOf

func AllOf(s interface{}, p func(int) bool) bool

AllOf returns true if all elements in the slice match the predict func.

func AnyOf

func AnyOf(s interface{}, p func(int) bool) bool

AnyOf returns true if any element in the slice matches the predict func.

func Copy

func Copy[T any](a []*T) []*T

Copy is a deep copy of the slice.

func NoneOf

func NoneOf(s interface{}, p func(int) bool) bool

NoneOf returns true if no element in the slice matches the predict func.

Types

This section is empty.

Jump to

Keyboard shortcuts

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