mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00

* remove `In` trait, `__in__`, `__notin__` function * desugar to `__contains__` * impl Collection for Array, Set, Tuple
5 lines
93 B
Python
5 lines
93 B
Python
assert 1 in [1, 2]
|
|
assert 1 in (1, 2)
|
|
assert 1 in {1, 2}
|
|
assert 1 in {1: 2}
|
|
assert 1 in 1..2
|