def closer

bolt@1.27.0.0 · src/syntax/tree.bend:137

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base

137# the bracket that closes an opener (`>` for `<` and `<&`)
138def closer(+oo: String) -> String:
139  Bool.pick(String, String.eq(oo, "("), ")",
140    Bool.pick(String, String.eq(oo, "["), "]",
141      Bool.pick(String, String.eq(oo, "{"), "}", ">")))

Uses (3)

Used by (1)