mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
WIP
This commit is contained in:
commit
befe2cf835
15 changed files with 148 additions and 59 deletions
8
compiler/erg_compiler/std/_erg_std_prelude.py
Normal file
8
compiler/erg_compiler/std/_erg_std_prelude.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue