This assigns the value of one change to another.
These compare two changes. Note that to be equal, the changes must be defined on the same number of bells; for example, "12" on 4 bells is different from "12" on 6 bells.
These return the effect of applying the change c to the bell b. For example,
3 * change(4,"34") == 4
. This is useful in tracing the path of one particular bell through a series of changes.
This writes the place notation for the change c to the given output stream.
If both changes have the same number of bells, these performs a lexicographical comparison on the swaps present in each changes; for example
change(6, "14")
compares less thanchange(6, "1236")
.If the two changes have different numbers of bells the one with fewer bells compares less than the one with more bells.