diff options
| author | John R. Lenton | 2014-01-15 01:37:08 +0000 |
|---|---|---|
| committer | John R. Lenton | 2014-01-15 01:37:08 +0000 |
| commit | fca456bc3c0e3c43b2ef598ba1b352e0c27a2778 (patch) | |
| tree | 551138750cfc547339063f289bee8f5a5aa7ba65 /tests/basics | |
| parent | 39b174e00a05dfaf4ac6f2e17cee4892a60e92c3 (diff) | |
added filter()
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/tests/filter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basics/tests/filter.py b/tests/basics/tests/filter.py new file mode 100644 index 000000000..5883e3d00 --- /dev/null +++ b/tests/basics/tests/filter.py @@ -0,0 +1,2 @@ +print(list(filter(lambda x: x & 1, range(-3, 4)))) +print(list(filter(None, range(-3, 4)))) |
