leo/compiler/tests/array/slice.leo

7 lines
145 B
Plaintext
Raw Normal View History

// `{from}..{to}` copies the elements of one array into another exclusively
function main() -> u32[3] {
let a = [1u32; 4];
return a[0..3]
}