slicex

package
v0.0.0-...-dcdaab2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains checks if the val is found in arr

func ConvertToAny

func ConvertToAny[T any](a []T) []any

ConvertToAny create an any array

func Except

func Except[T constraints.Ordered](a, b []T) []T

Except return elements in a which are not present in b

func Unique

func Unique[T comparable](arr []T) []T

Unique removes duplicates from arr

Types

This section is empty.

Jump to

Keyboard shortcuts

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