Filter

Filtered Iterable

The Filter type can be used to filter the results of some iterable. Given a callable object Filter iterable returns only those items in the original iterable for where calling the function returns a non-NULL value.