Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mutable_func (0.12 sec)

  1. src/sort/slice.go

    // Note: in many situations, the newer [slices.SortStableFunc] function is more
    // ergonomic and runs faster.
    func SliceStable(x any, less func(i, j int) bool) {
    	rv := reflectlite.ValueOf(x)
    	swap := reflectlite.Swapper(x)
    	stable_func(lessSwap{less, swap}, rv.Len())
    }
    
    // SliceIsSorted reports whether the slice x is sorted according to the provided less function.
    // It panics if x is not a slice.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top