def edits
ezx@1.11.0.0 · src/ws/moved.bend:305
import ezx@1.11.0.0/src/ws/moved.bend as Moved
import Base
import ezx@1.11.0.0/src/ledger/upgrade.bend as U
import ezx@1.11.0.0/src/lock/plan.bend as LP
import ezx@1.11.0.0/src/pkg/pkg.bend as K
305
306def edits(+ss: List<&2, U.Swap>, fs: List<&2, K.Source>) -> List<&2, LP.Effect>:
307 match fs:
308 case []:
309 []
310 case K.Source{+at, +text} <> tl:
311 +new = U.reimport.many(ss, text)
312 edit.put(Bool.not(String.eq(new, text)), at, new, edits(ss, tl))