def answer.queries
ezx@1.11.0.0 · src/lock/run.bend:562
import ezx@1.11.0.0/src/lock/run.bend as Run
import Base
import ezx@1.11.0.0/src/lock/up.bend as Up
import ezx@1.11.0.0/src/lock/plan.bend as Plan
562
563
564
565def answer.queries(+lib: String, qs: List<&2, Plan.Query>) -> IO(List<&2, Up.Reply>):
566 match qs:
567 case []:
568 IO.pure(List<&2, Up.Reply>, [])
569 case Plan.Query{ask, git} <> t:
570 do IO<List<&2, Up.Reply>>:
571 a : Up.Answer <- answer.up(lib, git)
572 rest : List<&2, Up.Reply> <- answer.queries(lib, t)
573 return Up.Reply{ask, a} <> rest