Saw this in a tweet, a good way to start the weekend for developers... ;-)
Map/filter/reduce in a tweet:
map([๐ฝ, ๐ฎ, ๐], cook)
=> [๐ฟ, ๐, ๐ณ]
filter([๐ฟ, ๐, ๐ณ], isVegetarian)
=> [๐ฟ, ๐ณ]
reduce([๐ฟ, ๐ณ], eat)
=> ๐ฉ
I love it!
That's so well thought! ๐ Thanks for sharing