Run.read.ups: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ws/run.bend as Run Lines 35-44 of ezx@1.11.0.0/src/ws/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ws/run.bend&start_line=35&end_line=44 import Base import ezx@1.11.0.0/src/io/file.bend as F import ezx@1.11.0.0/src/ws/root.bend as R # the ez.toml of every directory the search asks about, nearest first def read.ups(+top: String, asks: List<&2, R.Ask>) -> IO(List<&2, R.Up>): match asks: case []: IO.pure(List<&2, R.Up>, []) case R.Ask{+ds, rs} <> tl: do IO>: tx : Maybe<&2, String> <- F.read(ledger.path(top, ds)) rest : List<&2, R.Up> <- read.ups(top, tl) return R.Up{ds, rs, tx} <> rest Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=read https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/root.bend&name=Ask https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/root.bend&name=Up https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/run.bend&name=ledger.path