Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 2, 2020 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/09d3300bb3c2765ec029cf58e3a72920 to your computer and use it in GitHub Desktop.
Save Whateverable/09d3300bb3c2765ec029cf58e3a72920 to your computer and use it in GitHub Desktop.
evalable6
my @a = [0..20]; @a.kv.map: -> $a,$b {say $a~"--"~@a.tail(@a.elems-$a-1)}
0--1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1--2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
2--3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
3--4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
4--5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5--6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
6--7 8 9 10 11 12 13 14 15 16 17 18 19 20
7--8 9 10 11 12 13 14 15 16 17 18 19 20
8--9 10 11 12 13 14 15 16 17 18 19 20
9--10 11 12 13 14 15 16 17 18 19 20
10--11 12 13 14 15 16 17 18 19 20
11--12 13 14 15 16 17 18 19 20
12--13 14 15 16 17 18 19 20
13--14 15 16 17 18 19 20
14--15 16 17 18 19 20
15--16 17 18 19 20
16--17 18 19 20
17--18 19 20
18--19 20
19--20
20--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment