slice

package
v1.8.0 Latest Latest
Warning

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

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

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