I wrote a blog post some time ago which contrasts the "Schwartzian transform" with the slightly clearer alternative used by most APL-family languages and (in my opinion) an even cleaner approach which is possible in languages with a first-class table type: https://beyondloom.com/blog/rankingoffruits.html
inopinatus•2m ago
[delayed]
mont_tag•1h ago
Python's key-functions nicely encapsulate the whole process.
RodgerTheGreat•1h ago
inopinatus•2m ago