sliceutil

package
v0.27.3-rc23 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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