Help us shape the future of Go! Take the 2026 Go Developer Survey

slices

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 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

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