use of map instad of for loop code example
Example: use of map instad of for loop
for i in object:
doSomething(i)
////////////////////////////////
map(doSomething, object)
for i in object:
doSomething(i)
////////////////////////////////
map(doSomething, object)