zslice

package
v0.0.0-...-3c7041c Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T any](s *[]T, a T)

func AddAtEnd

func AddAtEnd(slicePtr any, add any) int

func AddEmptyElementAtEnd

func AddEmptyElementAtEnd(slicePtr any) int

func AddToSet

func AddToSet[T comparable](s *[]T, a T)

func Behead

func Behead(slice any)

func CheckIsSlicePtr

func CheckIsSlicePtr(s any) error

func CopyTo

func CopyTo(to, slice any)

func DeleteFromFunc

func DeleteFromFunc[S any](s *[]S, del func(s S) bool)

func Empty

func Empty(slicePtr any)

func IndexOf

func IndexOf(length int, is func(i int) bool) int

func MakeAnElementOfSliceRValType

func MakeAnElementOfSliceRValType(rval reflect.Value) reflect.Value

func MakeAnElementOfSliceType

func MakeAnElementOfSliceType(slice any) any

func Random

func Random[S any](slice []S) (S, int)

func Reduced

func Reduced[A any](slice []A, keep func(a A) bool) []A

func RemoveAt

func RemoveAt(slice any, index int) error

func Reverse

func Reverse(s any)

func SetsOverlap

func SetsOverlap[S comparable](a, b []S) bool

func Swap

func Swap[A any](slice []A, i, j int)

func Union

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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