def rule.put
import ezx@1.11.0.0/src/ledger/ignore.bend as Ignoreimport Base
276# a rule, in front of the rest, when the file does not have it
277def rule.put(there: Bool, +line: String, rest: List<&2, String>) -> List<&2, String>:
278 match there:
279 case True{}:
280 rest
281 case False{}:
282 line <> rest