slices

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter added in v0.17.0

func Filter[T any](slice []T, cb func(T) bool) []T

func Find added in v0.17.0

func Find[T comparable](haystack []T, compare func(v T) bool) (T, bool)

func Has

func Has[T comparable](haystack []T, needle T) bool

Types

type Equaler

type Equaler[T any] interface {
	Equal(T) bool
}

Jump to

Keyboard shortcuts

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