map mixed iterators
map works on any iterable, so we might end up passing one list and one string to it.
examples/functional/map_mixed.py
v1 = ['foo', 'bar', 'baz'] v2 = 'abc' result = map(lambda x,y: x+y, v1, v2) print(result) print( list(result) )
<map object at 0x7fc5e9ff4e80> ['fooa', 'barb', 'bazc']