genext

package
v2.0.47 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](a []T, val T) bool

func ContainsAll

func ContainsAll[T comparable](a []T, values ...T) bool

func ContainsAny

func ContainsAny[T comparable](a []T, values ...T) bool

func Difference

func Difference[T comparable](a, b []T) []T

func EqualSlices

func EqualSlices[T comparable](a []T, b []T) bool

func FirstIndexOf

func FirstIndexOf[T comparable](a []T, val T) (int, bool)

func OrDefault

func OrDefault[T any](val *T) T

func Remove

func Remove[T comparable](a []T, val T) []T

func SetToSlice

func SetToSlice[T comparable](values map[T]struct{}) []T

func SliceToSet

func SliceToSet[T comparable](values []T) map[T]struct{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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