def reimport.line.go

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

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

189# one line, with the branch already chosen. A match cannot scrutinise a call.
190def reimport.line.go(hit: Bool, +line: String, +old: String, +new: String) -> String:
191  match hit:
192    case True{}:
193      String.append(reimport.head(new),
194        String.drop(line, String.length(reimport.head(old))))
195    case False{}:
196      line

Uses (6)

Used by (1)