Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ False
True
```

When converted too a bool type, `[]` decay into `False` because it's empty, and `[[]]` becomes `True` since it's not empty. Therefore `all([[]])` is equivalent to `all([False])`, and `all([[[]]])` is the same as `all([True])`. As in `all([])` there is no `False` then is trivially `True`.
When converted to a bool type, `[]` decay into `False` because it's empty, and `[[]]` becomes `True` since it's not empty. Therefore `all([[]])` is equivalent to `all([False])`, and `all([[[]]])` is the same as `all([True])`. As in `all([])` there is no `False` then is trivially `True`.

Consumed by the `iter` method
---------------------------
Expand Down