+ 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 Answers
+ 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