mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
12 lines
259 B
Python
12 lines
259 B
Python
foo first: Int, second: Int, third: Int = log first, second, third
|
|
|
|
foo(*[1, 2, 3])
|
|
foo(1, *[2, 3])
|
|
foo(1, 2, *[3])
|
|
data = {"first": 1, "second": 2, "third": 3}
|
|
foo(**data)
|
|
foo(1, **{"second": 2, "third": 3})
|
|
# FIXME:
|
|
# foo(1, 2, **{"third": 3})
|
|
|
|
print! "OK"
|