March 2019
Intermediate to advanced
336 pages
9h 9m
English
The Thing sorter sorts the elements by their properties. The ThingSorter class has an array of things and a byFactor method:
// ThingSorter classtype ThingSorter struct { Things []Thing byFactor func(Thing1 *Thing, Thing2 *Thing) bool }
The next section talks about the implementation of the len, swap, and less methods.
Read now
Unlock full access