Implement iterable.filter