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.
Click to show internal directories.
Click to hide internal directories.