sliceutil

package
v0.0.0-...-b5ba5ed Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveAndZero

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

RemoveAndZero removes the element at index i from slice s and returns the resulting slice. The slice ordering is preserved; the last slice element is zeroed before shrinking.

Types

This section is empty.

Jump to

Keyboard shortcuts

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