3 ms·
Finally, in 2017, we can write custom comparators.
by reikonomusha 10y ago
Finally, in 2017, we can write custom comparators.
- steeve 10y agoA nice comment which adds nothing. On a side note, you always could.
- junke 10y ago> On a side note, you always could. Yes, with brand new sorter types for each different comparison. Knowing that Go had first-class functions from the beginning, it is actually quite surprising that a higher-order sort function didn't already exist.