def kind.of

bolt@1.27.0.0 · src/rules/calls.bend:43

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

43# a kind test on a kind, when there is one
44def kind.of(~test: Lex.TokKind -> Bool, mm: Maybe<&2, Lex.TokKind>) -> Bool:
45  match mm:
46    case None{}:
47      False{}
48    case Some{k}:
49      test(k)

Uses (3)

Used by (1)