Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](s []T, e T) bool
Contains returns true if an element is present in a collection.
func FindDuplicate ¶
func FindDuplicate[T comparable](s []T) (T, bool)
FindDuplicate returns duplicate element in a collection.
func Remove ¶
func Remove[T comparable](s []T, i int) []T
Remove removes an element from a collection.
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](s []T) []T
RemoveDuplicates removes duplicate element in a collection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.