mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
12 lines
190 B
Python
12 lines
190 B
Python
discard _x = None
|
|
|
|
discard 1
|
|
|
|
cond c, then, else =
|
|
if c:
|
|
do then
|
|
do else
|
|
|
|
assert cond(False, 1, 2) == 2
|
|
# assert cond(True, 1, 3) == "a"
|
|
# assert "a" == cond(True, 1, 3)
|