def ensure_seq

cswap-bend-cli@0.1.0.0 · store/io.bend:91

import cswap-bend-cli@0.1.0.0/store/io.bend as Io
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

91# sequence.json, written fresh first when it does not exist.
92def ensure_seq(+root: String, +ts: String) -> Act.of(Json.Json):
93  do ActM<Json.Json>:
94    m : Maybe<&2, Json.Json> <- read_seq(root)
95    ensure_seq2(m, root, ts)

Uses (8)

Used by (2)