fork download
  1. import std.stdio;
  2.  
  3. void main() {
  4.  
  5. auto a = [
  6. [1, 2, 3, 4],
  7. [11, 12, 13, 14],
  8. [21, 22, 23, 24],
  9. [31, 32, 33, 34]
  10. ];
  11.  
  12. writeln([a[1][1 .. 3], a[2][1 .. 3]]);
  13. }
Success #stdin #stdout 0s 4108KB
stdin
Standard input is empty
stdout
[[12, 13], [22, 23]]