Comment
Comment by delluminatus
Even knowing a lot about FP, I still found this worth skimming for the esoteric Python syntax. When it comes to constructing dictionaries with list comprehensions, I would always do something like this:
But they pointed out an actual "dict comprehension" that I didn't even realize existed:
And there is a similar "set comprehension":
Always amazes me how you can use Python for so many years and still encounter new features in the language.