slice

package
v0.27.12 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string, modifier func(s string) string) bool

ContainsString checks if a given slice of strings contains the provided string. If a modifier func is provided, it is called with the slice item before the comparation.

func SortInts64

func SortInts64(a []int64)

SortInts64 sorts []int64 in increasing order

func ToSet added in v0.26.0

func ToSet[T comparable](slices ...[]T) []T

ToSet returns a single slice containing the unique values from one or more slices. The order of the items in the result is not guaranteed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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