Source file
src/sort/sort_impl_go121.go
1
2
3
4
5
6
7
8
9
10
11
12 package sort
13
14 import "slices"
15
16 func intsImpl(x []int) { slices.Sort(x) }
17 func float64sImpl(x []float64) { slices.Sort(x) }
18 func stringsImpl(x []string) { slices.Sort(x) }
19
20 func intsAreSortedImpl(x []int) bool { return slices.IsSorted(x) }
21 func float64sAreSortedImpl(x []float64) bool { return slices.IsSorted(x) }
22 func stringsAreSortedImpl(x []string) bool { return slices.IsSorted(x) }
23
View as plain text