jenrzzz
Joined 16 years ago
Karma
133
Submissions
31
Member since
Jul 11
Joined 16 years ago
case Not(DistanceMetric)():
a syntax error?Also, I learned today that cat takes a -n option to prepend line numbers to the output! My solution ended up being
cat -n faces.txt | sort -k2 -k1n | uniq -f1 | sort -nk1,1 | cut -f2-`sym_equal` only makes 2 appearances in the whole codebase (to be bound to `Symbol#==` and `Symbol#===` in string.c), so there's not a whole lot of room for confusion.
Also, this is Ruby core! Smart people do what works and makes sense to them and don't spend a lot of time worrying about how clear it is to us unwashed masses.
[ my public key: https://keybase.io/jenrzzz; my proof: https://keybase.io/jenrzzz/sigs/KjBvxPfWib8r2J_JJCVTYkjypfQtf-BUogJsHPPKErE ]