slicex

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFirst

func AppendFirst[S ~[]E, E any](s S, e E) S

func AppendIfNotContains

func AppendIfNotContains[S ~[]E, E comparable](s S, v E) S

func Delete

func Delete[S ~[]E, E any](s S, i int) S

func DeleteAll

func DeleteAll[S ~[]E, E any](array S, indices ...int) S

func IsEmpty

func IsEmpty[S ~[]E, E any](s S) bool

IsEmpty Checks if an slice is nil or length equals 0

func IsNotEmpty

func IsNotEmpty[S ~[]E, E any](s S) bool

func Remove

func Remove[S ~[]E, E comparable](s S, v E) S

Types

This section is empty.

Jump to

Keyboard shortcuts

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