aboutsummaryrefslogtreecommitdiff
path: root/api/next
diff options
context:
space:
mode:
authorMatt Layher <mdlayher@gmail.com>2024-02-09 10:34:58 -0500
committerGopher Robot <gobot@golang.org>2024-05-10 17:28:50 +0000
commitf6c3a3e3c8c532e73e9dff7acdf04e2b4d5d9537 (patch)
tree784a3a54c89a901efaa9bb86c9d0489785103306 /api/next
parent69c74c9ea932f284364b0cac72a454a4e56d4ab2 (diff)
downloadgo-f6c3a3e3c8c532e73e9dff7acdf04e2b4d5d9537.tar.gz
go-f6c3a3e3c8c532e73e9dff7acdf04e2b4d5d9537.zip
slices: add Chunk
Chunk returns an iterator over consecutive sub-slices of up to n elements of s. Fixes #53987. Change-Id: I508274eca388db39550eb9e4d8abd5ce68d29d8d Reviewed-on: https://go-review.googlesource.com/c/go/+/562935 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'api/next')
-rw-r--r--api/next/53987.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/53987.txt b/api/next/53987.txt
new file mode 100644
index 0000000000..1861d0b783
--- /dev/null
+++ b/api/next/53987.txt
@@ -0,0 +1 @@
+pkg slices, func Chunk[$0 interface{ ~[]$1 }, $1 interface{}]($0, int) iter.Seq[$0] #53987