Advertisement
cwchen

[Perl 6] Three-dimensional array.

Oct 7th, 2017
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.11 KB | None | 0 0
  1. my @mtx[2;2;2] = (((1, 2), (3, 4)),
  2.                   ((5, 6), (7, 8)));
  3.  
  4. @mtx[1;1;1] == 8 or die "Wrong value";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement