mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
11 lines
170 B
Python
11 lines
170 B
Python
f {x; y}, [_], (_, _) = x + y
|
|
|
|
x = f {x = 1; y = 2}, [3], (4, 5)
|
|
assert x == 3
|
|
|
|
#[
|
|
and: [Bool; 2] -> Bool
|
|
and [True, t] = t
|
|
and [_, _] = False
|
|
assert and [True, True]
|
|
]#
|