slice

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDifference

func SetDifference[T comparable](a, b []T, unique bool) []T

SetDifference returns a slice containing the elements in slice a that are not in slice b.

func Unique

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

Unique returns a slice containing only the unique elements of the given slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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