Commit 47842c8
slices: add ContainsFunc function
Since we have Index, IndexFunc, and Contains functions, it's logical to have ContainsFunc function as well.
Fixes #53983
Change-Id: I1237d43bd93927d38b51e3e9ce5386b9098049f7
GitHub-Last-Rev: b7f6091
GitHub-Pull-Request: #39
Reviewed-on: https://go-review.googlesource.com/c/exp/+/417374
Run-TryBot: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>1 parent 6dcec33 commit 47842c8
2 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
361 | 380 | | |
362 | 381 | | |
363 | 382 | | |
| |||
0 commit comments