bracket_partner
Mojo function 🡭
bracket_partner
fn def bracket_partner(cp: Int) -> IntThe 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