mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
6 lines
157 B
Plaintext
6 lines
157 B
Plaintext
// A spread operator `...` copies the elements of one array into another
|
|
function main(a: u8[3]) {
|
|
let b = [1u8, 1u8];
|
|
|
|
assert_eq!(a, [1u8, ...b]);
|
|
} |