slices

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT 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, value T) []T

Remove is a generic way to remove the first instance of 'value' from the given slice. If the item does not exist in the slice, you'll get back your input slice as-is. This does not mutate your input slice - it returns a new slice without the value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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