def is_prefix
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
920# A sign or quantity glued to what follows it.
921def is_prefix(s: Sym) -> Bool:
922 match s:
923 case Plus{}:
924 True{}
925 case Minus{}:
926 True{}
927 case Pct{}:
928 True{}
929 case Amp{}:
930 True{}
931 case _:
932 False{}