erg/compiler/erg_compiler/std/_erg_std_prelude.py
Shunsuke Shibayama befe2cf835 WIP
2022-10-09 18:07:52 +09:00

8 lines
181 B
Python

def in_operator(x, y):
if type(y) == type:
if isinstance(x, y):
return True
# TODO: trait check
return False
else:
return x in y