batches

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchSlice

func BatchSlice[S ~[]T, T any](slice S, batchSize, index int) (S, int)

func NewBatchIterator

func NewBatchIterator[S ~[]T, T any](slice S, batchSize int) common.Iterator[S]

BatchSlice returns a batch cut out of the given slice, and the index of the next batch

Types

This section is empty.

Jump to

Keyboard shortcuts

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