erg/compiler/erg_compiler/std/prelude.py
Shunsuke Shibayama b997c685dd Add std
2022-10-09 17:56:17 +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