mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
5 lines
147 B
Python
5 lines
147 B
Python
concat|T: Type, M: Nat, N: Nat|(l: [T; M], r: [T; N]): [T; M + N] = l + r
|
|
|
|
l = concat [1, 2, 3], [4, 5, 6]
|
|
_ = l[5]
|
|
assert l == [1, 2, 3, 4, 5, 6]
|