3 ms·
Indeed. I prefer the following variant which is more explicit and thus (IMHO) more in the spirit of Python: (varname,) = [x for x in l if predicate_with_sin
by vog 14y ago
Indeed. I prefer the following variant which is more explicit and thus (IMHO) more in the spirit of Python:
(varname,) = [x for x in l if predicate_with_single_truth_value(x)]