File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,16 @@ import "slices"
88
99// Contains reports whether v is present in s.
1010// Deprecated: Use slices.Contains instead since go1.21.
11+ //
12+ //go:fix inline
1113func Contains [E comparable ](s []E , v E ) bool {
1214 return slices .Contains (s , v )
1315}
1416
1517// ContainsFunc reports whether v satisfying f(s[i]) is present in s.
1618// Deprecated: Use slices.ContainsFunc instead since go1.21.
19+ //
20+ //go:fix inline
1721func ContainsFunc [E any ](s []E , f func (E ) bool ) bool {
1822 return slices .IndexFunc (s , f ) >= 0
1923}
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import "slices"
99// Reverse reorder a slice of any ordered type in reverse order.
1010// Reverse modifies the contents of the slice s; it does not create a new slice.
1111// Deprecated: Use slices.Reverse instead since go1.21.
12+ //
13+ //go:fix inline
1214func Reverse [S ~ []E , E any ](s S ) {
1315 slices .Reverse (s )
1416}
You can’t perform that action at this time.
0 commit comments