canonical_bracket
Mojo function 🡭
canonical_bracket
fn def canonical_bracket(cp: Int) -> IntBD16 pairs brackets under canonical equivalence. Only two brackets have a singleton decomposition, so folding them by hand is the whole of it.
Args:
- cp (
Int)
Returns:
Int