def Draft.reason
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directivesimport Base
import bend-lint-api@0.2.0.0/shared/lists.bend as Lists
395# What comes after the rule: nothing, or `--` and the reasons.
396def Draft.reason(rest: List<&2, String>) -> Maybe<&2, List<&2, String>>:
397 match rest:
398 case Nil{}:
399 Some{[]}
400 case Con{dash, more}:
401 Lists.when(List<&2, String>, String.eq(dash, "--"), Draft.reasons(more, ([], [])))