Foreach, special treatment of every n:th item (odd, even for example)
34357
PHP: How do you determine every Nth iteration of a loop?
147428
Probability of picking an odd number from the set of naturals?
109016
:nth-child(even/odd) selector with class
111379
Creating all possible k combinations of n items in C++
139804
Strange behavior Of foreach
77500
How to remove repeated permutations?
122389
How can I generate a list of all possible permutations of several letters?
50299
Idiomatic way to use for-each loop given an iterator?
33044
Brackets around each item in matrix
58749
Choose K items from N in a circle
75229
Can there be a function that's even and odd at the same time?
32689
Iterate over all pairs of consecutive items in a list
94677
How to generate all permutations of a string in PHP?
140769
Collection of numbers always in increasing or decreasing order
153174
How can I get every distinct size-n combination of a list?
45413
How can I get every nth item from a List?
98730
Why does \foreach \x in {0,1,...,0}{} perform two iterations (instead of one)?