#tuple #generator #set #restricted


Tuple generator that ensures generated tuple contains at least one element from each given set

2 unstable releases

0.2.0 Jul 7, 2019
0.1.0 Mar 14, 2017

MIT license

360 lines

A restricted n-tuple from m sets here refers to a sequence of n elements from the given m sets, where, unlike a normal tuple, there is required to be at least one element from each set.

A restricted n-tuple counting function is a function which takes n and returns the number of possible restricted n-tuples for the given m sets.


~11K SLoC