sliceutil

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](s []T, e T) bool

Contains returns true if s slice contains e element.

func Copy

func Copy[T any](s []T) []T

Copy returns a copy of the slice.

func Map added in v0.10.2

func Map[T, U any](s []T, f func(T) U) []U

Map returns a new slice with the results of applying the function f to each element of the original slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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