daily pastebin goal
55%
SHARE
TWEET

[Perl 6] Checking the existence of elements with elem

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