89e0fc5b75
Co-authored-by: Ladislaus3III <Ladislaus3III@users.noreply.github.com> Co-authored-by: Sebastian Piotrowski <sebpio@st.amu.edu.pl>
3 lines
127 B
Python
3 lines
127 B
Python
def is_in(elt, seq):
|
|
"""Similar to (elt in seq), but compares with 'is', not '=='."""
|
|
return any(x is elt for x in seq) |