slices

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUnique

func AppendUnique[S ~[]E, E comparable](s S, vs ...E) S

AppendUnique appends unique (not already in the slice) values to a slice.

func ApplyToAll added in v0.76.0

func ApplyToAll[S ~[]E1, E1, E2 any](s S, f func(E1) E2) []E2

ApplyToAll returns a new slice containing the results of applying the function `f` to each element of the original slice `s`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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