leo/compiler/tests/array/spread.leo
2020-07-17 12:59:18 -07:00

6 lines
153 B
Plaintext

// A spread operator `...` copies the elements of one array into another
function main() -> u32[3] {
let a = [1u32, 1u32];
return [1u32, ...a]
}