sliceutil

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform added in v2.25.0

func Transform[Slice ~[]E, E any, R any](s Slice, fn func(e E) R) []R

Transform each element of the given slice and returns a new slice with the result.

Experimental: `exp` package is experimental, breaking changes may occur within minor releases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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