* I couldn’t really make operators first class functions, but I just autoimported operator which has this but in words
* I wanted partial application and hated lambda syntax, so I hacked it together with some magic. “_0 + 1” is basically equivalent to lambda x: x + 1
* Python really likes to make everything a free function, which messes with the whole left-to-right thing. So I monkey-patched functional methods onto all the collections
Together this means that if I have like a comma separated list of numbers in str and I want to, idk, count how many are above five I’d do something like
str.split(",").map(int).filter(_0 > 5).len
which matches how my brain things about it far better than how Python would like me to write it. It uses some tricks but it’s not actually that bad of a hack IMO: https://github.com/saagarjha/advent-of-code/blob/main/aoc.py