slice

package
v0.30.22 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.27.6

func Clone[S ~[]E, E any](s S) S

Clone is an alias of go builtin copy.

func Map

func Map[T any, K any, F func(item T) K](in []T, fn F) []K

func MapFilter

func MapFilter[T any, K any, F func(item T) (k K, ok bool)](in []T, fn F) []K

func ToMap added in v0.22.0

func ToMap[K comparable, T any, F func(item T) K](in []T, fn F) map[K]T

func ToUint32 added in v0.30.16

func ToUint32[S ~[]T, T ~uint32](s S) []uint32

func ToUint8 added in v0.22.0

func ToUint8[S ~[]T, T ~uint8](s S) []uint8

func ToValuer added in v0.21.5

func ToValuer[S ~[]T, T driver.Valuer](s S) []driver.Valuer

Types

This section is empty.

Jump to

Keyboard shortcuts

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