leo/compiler/otests/array/slice.leo
2021-04-19 18:08:14 -07:00

7 lines
165 B
Plaintext

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