Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](slice []T) []T
RemoveDuplicates returns a new slice of T with duplicate values removed. It retains the order of elements in the source slice.
func RemoveValues ¶
func RemoveValues[T comparable](slice, values []T) []T
RemoveValues remove the given values from the given slice and returns the updated one. It retains the order of elements in the source slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.