daily pastebin goal
11%
SHARE
TWEET

[Perl 6] Creating a SetHash from a list.

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