slices

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear added in v1.1.0

func Clear[S ~[]E, E any](s S)

func GrowLen added in v1.2.0

func GrowLen[S ~[]E, E any](s S, n int) S

func RemoveInPlace

func RemoveInPlace[T any](collection []T, predicate func(T, int) bool) []T

RemoveInPlace removes all elements from a slice that match the given predicate. Does not allocate a new slice.

func Reverse

func Reverse[S ~[]E, E any](s S)

Types

This section is empty.

Jump to

Keyboard shortcuts

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