macro_rules! array { ($($elements:expr),* $(,)?) => { ... }; }
Constructs [Array] literals, similar to Rust’s standard vec! macro.
Array
vec!
The type of the array is inferred from the arguments.
let arr = array![3, 1, 4]; // Array<i32>
To create an Array of variants, see the varray! macro.
varray!
For dictionaries, a similar macro dict! exists.
dict!