def reclone.all

ezx@1.11.0.0 · src/lock/world.bend:562

import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L

562# every answer as a fresh clone would have it. A tree the upgrade checked
563# out is a clone already.
564def reclone.all(+orgs: List<&2, L.Origin>, rs: List<&2, Reply>) -> List<&2, Reply>:
565  match rs:
566    case []:
567      []
568    case Reply{+ask, answer} <> t:
569      Reply{ask, reclone.one(orgs, ask.hash(ask), answer)} <> reclone.all(orgs, t)

Uses (5)

Used by (1)