array

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[V string | int64 | int32 | int | float64 | float32](array []V, item V) bool

Contains determine whether the element is in the array

func HasDuplicateItem

func HasDuplicateItem[V string | int64 | int32 | int | float64 | float32](values []V) (bool, V)

HasDuplicateItem check has duplicate items

func RemoveDuplicateElements added in v2.1.0

func RemoveDuplicateElements[T comparable](values []T) []T

RemoveDuplicateElements remove duplicate elements

Types

This section is empty.

Jump to

Keyboard shortcuts

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