mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-29 21:22:55 +03:00
8 lines
202 B
Plaintext
8 lines
202 B
Plaintext
// Multidimensional array syntax in leo
|
|
function main() {
|
|
const a = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline
|
|
|
|
const b: u32[3][2] = [[0; 3]; 2]; // initializer
|
|
|
|
assert_eq!(a, b);
|
|
} |