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