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