sliceutils

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupDuplicates added in v0.0.18

func GroupDuplicates[T comparable](s []T) map[T][]T

func RemoveDuplicates

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

Remove duplicates from slices of any comparable type

https://gosamples.dev/generics-remove-duplicates-slice/

Types

This section is empty.

Jump to

Keyboard shortcuts

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