public List < Set < String > > makeNWiseTuples ( String [ ] variables , int nWise ) { List < Set < String >> completeTuples = new ArrayList <> ( ) ; makeNWiseTuplesHelper ( completeTuples , variables , 0 , new HashSet < String > ( ) , nWise ) ; return completeTuples ; }
Produces all tuples of size n chosen from a list of variable names