arrays

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Batch added in v1.0.14

func Batch[T any](source []T, batchSize int) [][]T

func Filter

func Filter[ArrayType any](input []ArrayType, f func(ArrayType) bool) []ArrayType

func Map

func Map[InputType, OutputType any](input []InputType, f func(InputType) OutputType) []OutputType

func Reduce

func Reduce[InputType, OutputType any](input []InputType, f func(OutputType, InputType) OutputType, initial OutputType) OutputType

Types

This section is empty.

Jump to

Keyboard shortcuts

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