slices

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](src []T) []T

func Common

func Common[T comparable](slice1 []T, slice2 []T, min int) bool

func Contains

func Contains[T comparable](wanted T, slice ...T) bool

func Interface

func Interface[T any](values []T) []any

func Prepend

func Prepend[T any](s []T, v T) []T

func Remove

func Remove[T comparable](values []T, drop ...T) []T

func Shuffle

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

func String

func String[T any](values []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