3 ms·
to me something like for key in possible_keys: if key in collection: ... is fine and isn’t subject to your disadvantage.
by andy99 10mo ago
to me something like
for key in possible_keys:
if key in collection:
...
is fine and isn’t subject to your disadvantage.