Advertisement
cwchen

[Perl 6] Checking the existence of elements with cont

Nov 8th, 2017
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.12 KB | None | 0 0
  1. my $set= (1, 2, 3, 4, 5).Set;
  2.  
  3. $set (cont) 1 or die "Wrong status";
  4. ($set (cont) 10) == False or die "Wrong status";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement