Generate lexicographic permutations, combinations, and cartesian products from data with index-based access.