def closed_by
import cswap-bend-cli@0.1.0.0/json/scan.bend as Scanimport Base
import cswap-bend-cli@0.1.0.0/json/lex.bend as Lex
48# Is the last token of t the closer `k`?
49def closed_by(+t: List<&2, Lex.Tok>, k: U32) -> Bool:
50 U32.is_eq(last.kind(List.last(&2, Lex.Tok, t)), k)