Compute a list of all possible block combinations where
the number of blocks in each combination is limited by parameters
min_level
and max_level
.
unique_combos(n_block, max_level, min_level = 2)
integer
number of input blocks.
integer
maximum number of blocks per combination.
integer
minimum number of blocks per combination.
A list of unique block combinations.
This function is used for minimal redundancy implementations of
rosa
and sopls
and for lookups into computed
components.
unique_combos(3, 2)
#> [[1]]
#> [1] 1 2
#>
#> [[2]]
#> [1] 1 3
#>
#> [[3]]
#> [1] 2 3
#>