mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-12 15:45:22 +00:00
4 lines
148 B
Python
4 lines
148 B
Python
concat|T: Type, M: Nat, N: Nat|(l: [T; M], r: [T; N]): [T; M + N] = l + r
|
|
|
|
l: [Nat; 6] = concat [1, 2, 3], [4, 5, 6]
|
|
assert l == [1, 2, 3, 4, 5, 6]
|