This commit is contained in:
Shunsuke Shibayama 2022-10-09 18:07:52 +09:00
commit befe2cf835
15 changed files with 148 additions and 59 deletions

View file

@ -0,0 +1,8 @@
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