]> Cypherpunks.ru repositories - gostls13.git/commit
slices: new package
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Feb 2023 21:52:37 +0000 (13:52 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 13 Feb 2023 21:00:42 +0000 (21:00 +0000)
commit1e9925f461c54f5fdc100f9f23916b3df81262ce
treeaad184f245cd81cae052156c287625cd66bba4de
parent790f25052d829578ffc3eabc29e90175e28aeb80
slices: new package

This copies parts of x/exp/slices into the standard library.
We omit all functions that depend on constraints.Ordered,
and the Func variants of all such functions. In particular this
omits the various Sort and Search functions.

Fixes #57433

Change-Id: I3c28f4c2e6bd1e3c9ad70e120a0dd68065388f77
Reviewed-on: https://go-review.googlesource.com/c/go/+/467417
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
api/next/57433.txt [new file with mode: 0644]
src/go/build/deps_test.go
src/go/doc/comment/std.go
src/slices/slices.go [new file with mode: 0644]
src/slices/slices_test.go [new file with mode: 0644]