mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 16:41:42 +03:00
8 lines
210 B
Plaintext
8 lines
210 B
Plaintext
// Multidimensional array syntax in leo
|
|
function main() {
|
|
let a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
|
|
|
|
let b: [u32; (3, 2)] = [0; (3, 2)]; // initializer
|
|
|
|
console.assert(a == b);
|
|
} |