Python Function Reference

filter
Construct an iterator from those elements of iterable for which function returns true.
Python 3.13
filter(function, iterable)
Examples
Python 3.13
>>> list(filter(lambda x: x > 2, [1, 2, 3, 4]))
[3, 4]