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

slice

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[T any](slice []T, fn func(T) bool) bool

func Any

func Any[T any](slice []T, fn func(T) bool) bool

func Chars

func Chars(str string) iter.Seq[rune]

func Filter

func Filter[T any](slice []T, f func(T) bool) []T

func Map

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

func Reduce

func Reduce[T any, U any](slice []T, f func(U, T) U, acc U) U

func Ref

func Ref[T any](slice []T) []*T

Types

This section is empty.

Jump to

Keyboard shortcuts

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