moreslices

package
v0.17.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove[T comparable](slice []T, elem T) []T

Remove removes all values equal to elem from slice.

The closest equivalent in the standard slices package is:

DeleteFunc(func(x T) bool { return x == elem })

Types

This section is empty.

Jump to

Keyboard shortcuts

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