slices

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk

func Chunk[K comparable](slice []K, batchSize int) [][]K

Chunk - create batches of an arbitrary typed slice into the given batch size

func PickField

func PickField[K interface{}, V comparable](iterator []K, returner func(K) V) (result []V)

PickField - pick the value of a particular field from a slice into it's own slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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