diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-15 01:37:08 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-15 01:37:08 +0000 |
commit | fca456bc3c0e3c43b2ef598ba1b352e0c27a2778 (patch) | |
tree | 551138750cfc547339063f289bee8f5a5aa7ba65 /tests | |
parent | 39b174e00a05dfaf4ac6f2e17cee4892a60e92c3 (diff) | |
download | micropython-fca456bc3c0e3c43b2ef598ba1b352e0c27a2778.tar.gz micropython-fca456bc3c0e3c43b2ef598ba1b352e0c27a2778.zip |
added filter()
Diffstat (limited to 'tests')
-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 0000000000..5883e3d00b --- /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)))) |