Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions slicetools/chunk.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package slicetools

// Chunks splits a slice into chunks of the given size.
// Deprecated: Use slices.Chunk instead.
func Chunks[T any](items []T, chunkSize int) [][]T {
// optimization for small slices
if len(items) <= chunkSize {
Expand Down