ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arrays.zs 281B

1234567891011121314151617181920212223
  1. val a = new int[](3, 10);
  2. for i in a {
  3. println(i);
  4. }
  5. println(a[1]);
  6. val multiDim = new int[,,](1,2,3, 130);
  7. println(multiDim[0,1,2]);
  8. val t = multiDim;
  9. val b = new int[](3);
  10. for i in b {
  11. println(i);
  12. }
  13. val c = new int[,,](1,2,3);
  14. println(c[0,1,2]);