3 ms·
Python has a built-in map. Reduce is in functools. Filter is in itertools. Between builtins, itertools, and functools, you pretty much have it covered.
by TheLoneWolfling 12y ago
Python has a built-in map. Reduce is in functools. Filter is in itertools.
Between builtins, itertools, and functools, you pretty much have it covered.
- mc_hammer 12y agoThought so - python is a rly nice lang
- elliott34 12y agoExcuse my ignorance here: so are these functional programming paradigms?
- TheLoneWolfling 12y agoGenerally speaking, yes. (Look here: https://en.wikipedia.org/wiki/Higher-order_function#General_examples https://en.wikipedia.org/wiki/Higher-order_function#General_... )