slices

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat[T any](s ...[]T) []T

func Empty

func Empty[T any]() []T

func Filter

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

func FlatMap

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

func FlatMapConcat

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

func Flatten

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

func Len

func Len[T any](s []T) int

func Map

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

func Range

func Range(start, end int) []int

func Single

func Single[T any](v 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