def closed_by

cswap-bend-cli@0.1.0.0 · json/scan.bend:48

import cswap-bend-cli@0.1.0.0/json/scan.bend as Scan
import 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)

Uses (7)

Used by (1)