package
Version:
v0.1.19
Opens a new window with list of versions in this module.
Published: Jan 9, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func IterSplit[Slice ~[]E, E any](data Slice, n int) func(yield func(Slice) bool)
IterSplit 将一个切片划分为多个大小为len的切片
并且通过一个函数迭代切片
func IterSplit2[Slice ~[]E, E any](data Slice, n int) func(yield func(Slice, int) bool)
func Split[Slice ~[]E, E any](data Slice, n int) (out []Slice)
Split 将一个切片划分为多个大小为len的切片
Source Files
¶
Click to show internal directories.
Click to hide internal directories.