Less returns true if the element at index i is greater than the element at index j
(i, j int)
| 17 | |
| 18 | // Less returns true if the element at index i is greater than the element at index j |
| 19 | func (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 |
| 24 | func (r ReverseFloat64Slice) Swap(i, j int) { |