difference

This commit is contained in:
Rohit Tanwar
2018-01-20 19:46:44 +05:30
parent cb00693471
commit a11c0d44c1
4 changed files with 36 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Use `filter()` to filter out falsey values (False, None, 0, and "").
```python
def compact(arr):
return list(filter(lambda x: bool(x), arr))