def reimport.hit

ezx@1.11.0.0 · src/ledger/upgrade.bend:181

import ezx@1.11.0.0/src/ledger/upgrade.bend as Upgrade
import Base

181# an empty hash names no package, so it rewrites nothing
182def reimport.hit(empty: Bool, +line: String, +old: String) -> Bool:
183  match empty:
184    case True{}:
185      False{}
186    case False{}:
187      String.starts_with(line, reimport.head(old))

Uses (4)

Used by (1)