slice

package
v0.1.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterSplit added in v0.1.19

func IterSplit[Slice ~[]E, E any](data Slice, n int) func(yield func(Slice) bool)

IterSplit 将一个切片划分为多个大小为len的切片 并且通过一个函数迭代切片

func IterSplit2 added in v0.1.19

func IterSplit2[Slice ~[]E, E any](data Slice, n int) func(yield func(Slice, int) bool)

func Split

func Split[Slice ~[]E, E any](data Slice, n int) (out []Slice)

Split 将一个切片划分为多个大小为len的切片

Types

This section is empty.

Jump to

Keyboard shortcuts

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