Advertisement
cwchen

[Perl 6] List and Array.

Oct 7th, 2017
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.11 KB | None | 0 0
  1. (1, 2, 3).WHAT === List or die "Wrong type";
  2.  
  3. my @arr = (1, 2, 3);
  4. @arr.WHAT === Array or die "Wrong type";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement