On Sat, 24 Aug 2013 21:55:36 -0000, pste...@apache.org wrote:
[...]
I wonder whether the utility should involve the creation of an instance of a bona fide "Combination" class. I.e. instead of a "naked" Iterator<int[]> combinationIterator(int n, int k) there would be Iterator<Combination> combinationIterator(int n, int k) where "Combination" would provide an accessor public int[] toArray() { // ... } The advantage is that "Combination" could also implement Comparable<Combination> with code similar to the "lexNorm" method defined for the tests. Or did I miss something? Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org