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);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266042.html