Files
Pyarmor-Static-Unpack-1shot/tests/input/iter_unpack.py
Michael Hansen 391ba6502d Migrate additional tests which previously didn't have reference source to
the new test system, including new reference source.
2019-10-07 17:06:08 -07:00

6 lines
122 B
Python

def map_with_index(func, lst):
res = []
for i, x in enumerate(lst):
res.append(func(i, x))
return res