leo/compiler/tests/array/slice.leo
2020-08-16 17:20:47 -07:00

7 lines
161 B
Plaintext

// `{from}..{to}` copies the elements of one array into another exclusively
function main(a: u8[3]) {
let b = [1u8; 4];
console.assert(a == b[0..3]);
}