Advertisement
cwchen

[Perl 6] Range operators.

Sep 30th, 2017
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.19 KB | None | 0 0
  1. 1 .. 5 ~~ (1, 2, 3, 4, 5) or die "Unequal list";
  2. 1 ..^ 5 ~~ (1, 2, 3, 4) or die "Unequal list";
  3. 1 ^.. 5 ~~ (2, 3, 4, 5) or die "Unequal list";
  4. 1 ^..^ 5 ~~ (2, 3, 4) or die "Unequal list";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement