mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-02 12:22:08 +03:00
8 lines
200 B
Plaintext
8 lines
200 B
Plaintext
// Multidimensional array syntax in leo
|
|
function main() -> u32[3][2] {
|
|
const m = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline
|
|
|
|
const m: u32[3][2] = [[0; 3]; 2]; // initializer
|
|
|
|
return m
|
|
} |