diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-15 01:10:09 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-15 01:10:09 +0000 |
commit | 39b174e00a05dfaf4ac6f2e17cee4892a60e92c3 (patch) | |
tree | 9056691f927008e337ad8fd1814c7c4097625b0d /tests | |
parent | ff8007c7d6497b108e8abe80ab3311945a03fe52 (diff) |
Added map
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/tests/map.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/tests/map.py b/tests/basics/tests/map.py new file mode 100644 index 000000000..62dca44ed --- /dev/null +++ b/tests/basics/tests/map.py @@ -0,0 +1,4 @@ +print(list(map(lambda x: x & 1, range(-3, 4)))) +print(list(map(abs, range(-3, 4)))) +print(list(map(set, [[i] for i in range(-3, 4)]))) +print(list(map(pow, range(4), range(4)))) |