Skip to content
bracket_partner

bracket_partner

Mojo function 🡭

bracket_partner

fn def bracket_partner(cp: Int) -> Int

The other half of a paired bracket, or 0 for anything that is not one (rule N0). The table holds each pair once, opening first.

Args:

  • cp (Int)

Returns:

Int