+ 25

map, filter and reduce explained with emoji 😂

map, filter and reduce explained with emoji 😂 map([🐮, 🍠, 🐔, 🌾], cook) => [🍔, 🍟, 🍗, 🍞] filter([🍔, 🍟, 🍗, 🍞], isVegetarian) => [🍟, 🍞] reduce([🍔, 🍟, 🍗, 🍞], eat) => 💩

7th Nov 2017, 2:34 AM
Ilia Fedorov
Ilia Fedorov - avatar
5 ответов
+ 22
informative code. Now I understand...
7th Nov 2017, 4:51 AM
Lord Krishna
Lord Krishna - avatar
+ 15
@Ipang Sorry, escaped the deadly python. won't go back... https://medium.com/@happymishra66/lambda-map-and-filter-in-python-4935f248593 lambda, map and filter in Python – Rupesh Mishra – Medium http://book.pythontips.com/en/latest/map_filter.html 4. Map, Filter and Reduce — Python Tips 0.1 documentation https://www.python-course.eu/lambda.php Python Tutorial: Lambda Operator, filter, reduce and map http://www.bogotobogo.com/python/python_fncs_map_filter_reduce.php Python Tutorial: map, filter, and reduce - 2017 - BogoToBogo
7th Nov 2017, 7:36 AM
Lord Krishna
Lord Krishna - avatar
+ 4
Ummm.... surprisingly this was very helpful. Now I️ really get it. Dead serious.
11th Nov 2017, 4:17 AM
Heather Moseley
Heather Moseley - avatar
+ 3
Err... still learning, sorry, still don't quite understand it, can you shed a light for my darkened brain? I think Python is strangling my neck here :)
7th Nov 2017, 5:57 AM
Ipang
+ 1
@Lord Krishna, Thank you, appreciate the time taken, will save those links for further references :-)
7th Nov 2017, 7:56 AM
Ipang