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 362bd2d commit c9b630bCopy full SHA for c9b630b
collections/lists.go
@@ -31,7 +31,7 @@ func MakeCopyOfList[S ~[]E, E comparable](list S) S {
31
32
// BatchListIntoGroupsOf will group the provided slice into groups of size n, with the last of being truncated to
33
// the remaining count of elements. Returns nil if n is <= 0
34
-func BatchListIntoGroupsOf[S ~[]E, E comparable](slice S, batchSize int) []S {
+func BatchListIntoGroupsOf[S ~[]E, E any](slice S, batchSize int) []S {
35
if batchSize <= 0 {
36
return nil
37
}
0 commit comments