def Draft.reasons.step
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directivesimport Base
371# The reason so far (last first) and those before it (last first), with `word` read: the label starts another.
372def Draft.reasons.step(
373 dash: Bool,
374 word: String,
375 read: List<&2, String> & List<&2, String>
376) -> List<&2, String>
377 & List<&2, String>:
378 match dash read:
379 case True{} Tuple{part, out}:
380 ([], Draft.part(part, out))
381 case False{} Tuple{part, out}:
382 (word <> part, out)