Here is a simple example of how to declare and initialize an array.
contract test { import Array; public getStrings(): array<string> { local result : array<string> = {"A", "B", "C"}; return result; } }
Last updated 1 year ago