daily pastebin goal
36%
SHARE
TWEET

[Perl 6] Creating a Bag.

cwchen Nov 8th, 2017 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my $bag = (1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 5, 5).Bag;
  2.  
  3. $bag.elems == 5 or die "Wrong element count";
  4. $bag (cont) 1 or die "Wrong status";
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