March 2019
Intermediate to advanced
336 pages
9h 9m
English
The Swap method of multiSorter takes the integers i and j as input. This method swaps the array elements at index i and j:
// Swap methodfunc (multiSorter *multiSorter) Swap(i int, j int) { multiSorter.Commits[i] = multiSorter.Commits[j] multiSorter.Commits[j] = multiSorter.Commits[i]}
Read now
Unlock full access