Skip to content
canonical_bracket

canonical_bracket

Mojo function 🡭

canonical_bracket

fn def canonical_bracket(cp: Int) -> Int

BD16 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