slicez

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachChunk

func ForEachChunk[T any](data []T, chunkSize uint16, handler func(items []T))

ForEachChunk executes the given handler for each chunk of items in the slice.

func ForEachChunkUntil

func ForEachChunkUntil[T any](data []T, chunkSize uint16, handler func(items []T) (bool, error)) (bool, error)

func Unique

func Unique[T comparable](items []T) []T

Unique returns the items slice, but with duplicate items removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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