There is no loop, because it maprequires "iteration" (that is, an object on which you can iterate), and the loop itself.
mapif it is absent initially, it can be implemented as:
def map(f, it):
return [f(x) for x in it]
or, even more explicitly, as:
def map(f, it):
result = []
for x in it:
result.append(f(x))
return result
Python , .
map(ord, "hello")
[104, 101, 108, 108, 111]
.