slice

package
v0.0.0-...-2dc6276 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intersect

func Intersect[T constraints.Ordered](a, b []T) []T

get intersection of slices

func Map

func Map[T constraints.Ordered](slice []T) map[T]struct{}

get map from slice

func Remove

func Remove[T constraints.Ordered](slice []T, item T) []T

remove elements from slice

func Subset

func Subset[T constraints.Ordered](subset, total []T) bool

first items is subset slice

func Transpose

func Transpose[T constraints.Ordered](slice [][]T) [][]T

func Uniq

func Uniq[T constraints.Ordered](items []T) []T

return unique slice items

Types

This section is empty.

Jump to

Keyboard shortcuts

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