daily pastebin goal
18%
SHARE
TWEET

[Perl 6] Emptying an array.

cwchen Oct 7th, 2017 137 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my @arr = (1, 2, 3, 4, 5);
  2. @arr.elems == 5 or die "Wrong length";
  3.  
  4. @arr = Empty;
  5. @arr.elems == 0 or die "Wrong length";
RAW Paste Data
Top