Advertisement
Guest User

Untitled

a guest
Jan 21st, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. sub cinq($a where (all(@$a) ~~ Int and $a.elems == 2),$b where (all(@$b) ~~ Int and $b.elems == 2)){
  2. say "a : " ~ $a[0] ~ ", " ~ $a[1];
  3. say "b : " ~ $b[0] ~ ", " ~ $b[1];
  4. }
  5.  
  6. #caller with 2 Lists
  7. cinq (2,3), (4,5);
  8. #caller with 2 List too (Parentheses must touch sub name)
  9. cinq((22,23), (11,25));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement