def is_keyword

bolt@1.27.0.0 · src/syntax/lex.bend:244

import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import Base

244# is the text one of Bend's keywords?
245def is_keyword(+tt: String) -> Bool:
246  List.contains(~String, ~String.eq,
247    ["def", "type", "law", "match", "case", "do", "return", "for", "exs", "where", "is", "import",
248     "Type", "Data", "Kind", "Quant"], tt)

Uses (5)

Used by (1)