If current index is set to true in the boolean array then element at current index in the original array is part of the combination generated previously
if ( Flags [ i ] ) { Console . Write ( Indices [ i ] ) ; Console . Write ( " ▁ " ) ; ++ count ; } } Console . WriteLine ( ) ; } }