daily pastebin goal
64%
SHARE
TWEET

[Perl 6] Emptying an array.

cwchen Oct 7th, 2017 153 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top