Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for stringsAreSortedImpl (0.33 sec)

  1. src/sort/sort_impl_120.go

    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

    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

    // StringsAreSorted reports whether the slice x is sorted in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.IsSorted].
    func StringsAreSorted(x []string) bool { return stringsAreSortedImpl(x) }
    
    // Notes on stable sorting:
    // The used algorithms are simple and provable correct on all input and use
    // only logarithmic additional stack space. They perform well if compared
    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