by ruszki · 9mo ago · 0 comments
I'm so happy without seeing Python list comprehensions nowadays.
I don't know why they couldn't go with something like this:
[state_dict.values() for mat for row for p]
or in more difficult cases
[state_dict.values() for mat to mat*2 for row for p to p/2]
I know, I know, different times, but still.
[for p in row in mat in state_dict.values()]
One for sure, both are superior to the garbled mess of Python’s.
Of course if the programming language would be in a right to left natural language, then these are reversed.