Urec.with_plan: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/urec.bend as Urec Lines 20-25 of cswap-bend-cli@0.1.0.0/urec.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/urec.bend&start_line=20&end_line=25 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/poll.bend as Poll import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore def with_plan(m: Maybe<&2, Poll.Sched>, +row: Json.Json) -> Json.Json: match m: case None{}: row case Some{Poll.Sched{next, interval}}: Json.set("pollIntervalS", Ustore.fl(interval), Json.set("nextPollAt", Ustore.fl(next), row)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=set https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/poll.bend&name=Sched https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/ustore.bend&name=fl