circuitpython/tests/basics/builtin_filter.py

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

9 lines
155 B
Python
Raw Permalink Normal View History

try:
filter
except:
print("SKIP")
raise SystemExit
2014-01-14 20:37:08 -05:00
print(list(filter(lambda x: x & 1, range(-3, 4))))
print(list(filter(None, range(-3, 4))))