This function swaps this row with other in an efficient manner.
This function locates the bell, b, in this row and returns its place.
This returns true if the row is rounds, and false otherwise.
If the row is a lead head of Plain Bob, Grandsire or, more generally, of the Plain Bob type method with any number of hunt bells, then this function returns an integer indicating which lead head it is. Otherwise, it returns 0.
If the row is a lead head of Plain Bob, Grandsire or, more generally, of the Plain Bob type method with h hunt bells, then this function returns an integer indicating which lead head it is. Otherwise, it returns 0.
This returns the sign or parity of a row: 1 for even, -1 for odd.
This expresses the row as separate cycles. The returned string will afterwards contain a list of all the cycles in the row, separated by commas; for example
row("21453678").cycles()
will return the string"12,345,6,7,8"
.
This specialised the
swap
function which is defined in the standard library. The result is that certain standard algorithms may become much more efficient. Note that according to your namespace setup,swap
may need to be in namespacestd
; similarly,row
may or may not be in namespaceringing
. This is all taken care of.