import std.stdio; void print(immutable int[] array) { foreach (i, element; array) { writefln("%s: %s", i, element); } } void main() { immutable int[] array = [ 1, 2 ]; print(array); }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more