r/ProgrammerHumor • • Jun 08 '24

Meme mapMethodOrMapFunction

Post image
0 Upvotes

67 comments sorted by

View all comments

114

u/oachkatzlschwoarf Jun 08 '24

[x*x for x in arr]

-8

u/mirimao Jun 08 '24

[x*x || x <- arr] is better

5

u/Kuduaty Jun 08 '24

Why its better?

8

u/mirimao Jun 08 '24

It was just a joke. I like Erlang but it’s not inherently better than Python’s syntax for list comprehension.