5
x1ph0z
7y

Python list and dictionary comprehension is some crazy awesome black magic. More languages should have these.

Comments
  • 2
    Check out Haskell's monad comprehensions, then.
  • 1
    I tried to do a simple map operation in python. Stack overflow lead me to list comprehension. My head exploded.
    I must be stupid but how can something so simple as a map be made so complicated 😄
  • 1
    @Froot map exists in python and works as expected
  • 1
    @notarealDev Hmm. Im probably just dumb then 😄
  • 1
    @Froot if I were you I'd blame Stackoverflow :P
Add Comment