slice

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfNotInSlice

func AppendIfNotInSlice[T comparable](slice []T, value T) []T

func Contains

func Contains[T comparable](collection []T, element T) bool

func Filter

func Filter[T comparable](s []T, predicate func(item T, index int) bool) []T

func ToStrings

func ToStrings[T stringable](slice []T) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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