Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: