🧠 Second Brain
Search
Python and Functional programming
- How to make your Python code more functional | by Ari Joury | Towards Data Science
- Bye-bye Python. Hello Julia!. As Python’s lifetime grinds to a halt… | by Ari Joury | Towards Data Science
- maps with python Python map() function - GeeksforGeeks
- Why I Switched from Python to Clojure (2016) | Hacker News
- (Functional) Data Engineering - Summary of blog posts
# map()
map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.)
Syntax :
map(fun, iter)
Parameters :
fun : It is a function to which map passes each element of given iterable.
iter : It is a iterable which is to be mapped.
NOTE : You can pass one or more iterable to the map() function.
Returns :
Returns a list of the results after applying the given function
to each item of a given iterable (list, tuple etc.)
NOTE : The returned value from map() (map object) then can be passed to functions like list() (to create a list), set() (to create a set) .
CODE 1
|
|
Related Big-O
# Higher Order Function
Origin:
References: Python, Higher Order Function
Created: 2021-12-23