circuitpython/tests/basics/builtin_map.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
179 B
Python
Raw Normal View History

2014-01-14 20:10:09 -05:00
print(list(map(lambda x: x & 1, range(-3, 4))))
print(list(map(abs, range(-3, 4))))
print(list(map(tuple, [[i] for i in range(-3, 4)])))
2014-01-14 20:10:09 -05:00
print(list(map(pow, range(4), range(4))))