def load
cswap-bend-cli@0.1.0.0 · daemon/gather.bend:124
import cswap-bend-cli@0.1.0.0/daemon/gather.bend as Gather
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/swlive.bend as L
124def load(+ctx: SBase.Ctx, +seq: Json.Json) -> Act.of(Snap):
125 do ActM<Snap>:
126 +live : L.Live <- L.read_live(ctx)
127 +st : Json.Json <- state_of(ctx)
128 rows : Json.Json <- Act.lift(Json.Json, read_rows(SBase.root_of(ctx)))
129 ents : List<&2, Ent> <- ents_for(ctx, seq, st)
130 return Snap{seq, live, L.lv_slot(live, seq), st, rows, ents}