Source file src/sort/sort_impl_120.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !go1.21
     6  
     7  package sort
     8  
     9  func intsImpl(x []int)         { Sort(IntSlice(x)) }
    10  func float64sImpl(x []float64) { Sort(Float64Slice(x)) }
    11  func stringsImpl(x []string)   { Sort(StringSlice(x)) }
    12  
    13  func intsAreSortedImpl(x []int) bool         { return IsSorted(IntSlice(x)) }
    14  func float64sAreSortedImpl(x []float64) bool { return IsSorted(Float64Slice(x)) }
    15  func stringsAreSortedImpl(x []string) bool   { return IsSorted(StringSlice(x)) }
    16  

View as plain text