slices_utils

package
v0.1.54 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CutInBatches

func CutInBatches[T any](slice []T, batchSize int) [][]T

CutInBatches Cuts slice in batches, remaining will be put in extra batch.

func PAGet added in v0.1.30

func PAGet[T []E, E any](slice T, start int, end int) []E

func PGet added in v0.1.29

func PGet[T []E, E any](slice T, idx int) E

func PIdx added in v0.1.29

func PIdx[T []E, E any](slice T, idx int) int

func PSAGet added in v0.1.30

func PSAGet(slice string, start int, end int) string

func PSGet added in v0.1.29

func PSGet(slice string, idx int) byte

func PSIdx added in v0.1.29

func PSIdx(slice string, idx int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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