We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deee40c commit cbd1420Copy full SHA for cbd1420
slicetools/chunk.go
@@ -1,6 +1,7 @@
1
package slicetools
2
3
// Chunks splits a slice into chunks of the given size.
4
+// Deprecated: Use slices.Chunk instead.
5
func Chunks[T any](items []T, chunkSize int) [][]T {
6
// optimization for small slices
7
if len(items) <= chunkSize {
0 commit comments