GenericAI_Sweeper/utils.py
eugenep 89e0fc5b75 Implementing graphsearch
Co-authored-by: Ladislaus3III <Ladislaus3III@users.noreply.github.com>
Co-authored-by: Sebastian Piotrowski <sebpio@st.amu.edu.pl>
2021-04-14 00:22:27 +02:00

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)