1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Counting and advancing the finite schedule space owned by one strand set.
use ;
/// How many interleavings the set admits: the multinomial over its strand lengths.
///
/// Computed as a running product of binomials, and surrendered honestly the moment any intermediate leaves the counter's range.
pub
/// Advance the material to the next position string in ascending order, or report the space walked out.
///
/// The rightmost position with room under its own radix steps up and the tail returns to zero, which is always lawful because a zero position names the first live strand.
/// The prefix before the pivot is unchanged, so the pivot's radix, computed under that prefix, still governs it.
pub
/// The binomial coefficient, or nothing where the running product leaves the counter's range.
///
/// The prefix products are themselves binomials, so every division is exact.