note
Eily
<p>Having a TTFFTTFF... pattern is quite easy:
<c> DB<11> $i = 0; say for grep { $i++ % 4 < 2 } 0..12
0
1
4
5
8
9
12</c>
And starting at the fourth value in the pattern just means your start at the fourth value of $i:
<c> DB<12> $i = 3; say for grep { $i++ % 4 < 2 } 0..12
1
2
5
6
9
10</c></p>
1227147
1227147