sliceutil

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sliceutil implements slice helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T string | int | int64 | float64](slice []T, elem T) bool

Contains checks whenther given element is a member of given slice

func Shuffle added in v1.3.0

func Shuffle[T any](slice []T) []T

Shuffle returns shuffled copy of given slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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