remove

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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 interface{}](input *[]T, predicate func(o T, i int, orig []T) bool) []T

Removes all elements from input that predicate returns truthy for and returns an slice of the removed elements. The predicate is invoked with three arguments: (value, index, input).

Note: This mutates input

Types

This section is empty.

Jump to

Keyboard shortcuts

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