Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for stringsImpl (0.1 sec)

  1. src/sort/sort_impl_120.go

    // license that can be found in the LICENSE file.
    
    //go:build !go1.21
    
    package sort
    
    func intsImpl(x []int)         { Sort(IntSlice(x)) }
    func float64sImpl(x []float64) { Sort(Float64Slice(x)) }
    func stringsImpl(x []string)   { Sort(StringSlice(x)) }
    
    func intsAreSortedImpl(x []int) bool         { return IsSorted(IntSlice(x)) }
    func float64sAreSortedImpl(x []float64) bool { return IsSorted(Float64Slice(x)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 602 bytes
    - Viewed (0)
  2. src/sort/sort_impl_go121.go

    // in sort_impl_120.go that retains the old implementation.
    
    package sort
    
    import "slices"
    
    func intsImpl(x []int)         { slices.Sort(x) }
    func float64sImpl(x []float64) { slices.Sort(x) }
    func stringsImpl(x []string)   { slices.Sort(x) }
    
    func intsAreSortedImpl(x []int) bool         { return slices.IsSorted(x) }
    func float64sAreSortedImpl(x []float64) bool { return slices.IsSorted(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 876 bytes
    - Viewed (0)
  3. src/sort/sort.go

    func Float64s(x []float64) { float64sImpl(x) }
    
    // Strings sorts a slice of strings in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.Sort].
    func Strings(x []string) { stringsImpl(x) }
    
    // IntsAreSorted reports whether the slice x is sorted in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.IsSorted].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top