3 ms·
is the expected semantics of 'x in y' for sequence types the same as 'any(x == z for z in y)'? For sequences that aren't strings, yes. :-) Strings are a sort o
by pdonis 13y ago
is the expected semantics of 'x in y' for sequence types the same as 'any(x == z for z in y)'?
For sequences that aren't strings, yes. :-) Strings are a sort of hybrid between "atomic" values and sequences, so their semantics can be different.