slice

package
v6.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToString

func AnyToString(slice []any) []string

func Contains

func Contains[T comparable](b []T, e T) bool

func DeleteFrom

func DeleteFrom[T comparable](collection []T, el T) []T

func DiffOneWay

func DiffOneWay(a, b []string) []string

DiffOneWay returns the elements in `a` that aren't in `b`.

func DiffString

func DiffString(slice1 []string, slice2 []string) []string

func Difference

func Difference[T comparable](a []T, b []T) []T

func FindIndex

func FindIndex[T comparable](collection []T, el T) int

func IntersectSlices

func IntersectSlices[T comparable](a []T, b []T) []T

IntersectSlices has complexity: O(n^2)

func ToAnyList

func ToAnyList[T any](input []T) []any

Types

This section is empty.

Jump to

Keyboard shortcuts

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