lysslices

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeDuplicate added in v0.1.24

func DeDuplicate[S ~[]E, E comparable](s S) S

DeDuplicate returns a copy of the slice with duplicates removed and without affecting value order from https://stackoverflow.com/questions/66643946/how-to-remove-duplicates-strings-or-int-from-slice-in-go

func EqualUnordered added in v0.1.22

func EqualUnordered[S ~[]E, E cmp.Ordered](s1, s2 S) bool

EqualUnordered true if s1 and s2 are equal regardless of sorting

func SortAndDeDuplicate added in v0.1.24

func SortAndDeDuplicate[S ~[]E, E cmp.Ordered](s S) S

SortAndDeDuplicate returns a sorted and de-duplicated copy of the slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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