Template Function ADS::combinationsLex

Function Documentation

template<class F>
long ADS::combinationsLex(int n, int t, F &&visit)

the t-combinations of 0 , … , n - 1, lexicographic, increasing tuples

Pre:

0 <= t <= n