MCPcopy Create free account
hub / github.com/Azure/peerd / Less

Method Less

tests/random/math/reverse.go:19–21  ·  view source on GitHub ↗

Less returns true if the element at index i is greater than the element at index j

(i, j int)

Source from the content-addressed store, hash-verified

17
18// Less returns true if the element at index i is greater than the element at index j
19func (r ReverseFloat64Slice) Less(i, j int) bool {
20 return r[i] > r[j]
21}
22
23// Swap swaps the elements at indexes i and j
24func (r ReverseFloat64Slice) Swap(i, j int) {

Callers 1

TestLessFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLessFunction · 0.64