def seg_op.ends
import bolt@1.27.0.0/src/rules/pedantic/strict.bend as Strictimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
26# a comma or a `=>`: the end of a stretch
27def seg_op.ends(kk: Lex.TokKind) -> Bool:
28 match kk:
29 case Lex.TComma{}:
30 True{}
31 case Lex.TLam{}:
32 True{}
33 case other:
34 False{}