Visit all k combinations of an array in lexicographic order
github.com/mikolalysenko/foreach-combination
mikolalysenko/foreach-combination