2 ms·
Predicate in some() is optional. A test for boolean truth is used in that case. So, first example is the same as: some(bool, [0, '', -1, None, 2])
by Suor 13y ago
Predicate in some() is optional. A test for boolean truth is used in that case.
So, first example is the same as:
some(bool, [0, '', -1, None, 2])