Reviews by Alessandro Gorohovski

cpanratings
 

RSS

Algorithm-Combinatorics (0.26) *****

Algorithm::Combinatorics has good documentation and a very good interface. It's intuitive to use.

It would be good to refine optional parameters $min:

subsets(\@data[, $max, $min])

optional parameters:
$max ($k) --- the iteration runs over subsets of data of size $max ($k)

$min --- the bottom limit.

For example:
subsets( [A, B, C, D], 4, 2)

Output:
A B C D
A B C
A B D
A C D
B C D
A B
A C
A D
B C
B D
C D

Many thanks for the module.