def entry_push

cswap-bend-cli@0.1.0.0 · daemon/tick.bend:179

import cswap-bend-cli@0.1.0.0/daemon/tick.bend as Tick
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G
import cswap-bend-cli@0.1.0.0/daemon/status.bend as Stat

179def entry_push(+m: Maybe<&2, T.Usage>, +e: G.Ent, +rows: Json.Json, +now: Nat, +ms: List<&2, String>, +rest: List<&2, Stat.Entry>) -> List<&2, Stat.Entry>:
180  match m:
181    case Some{u}:
182      entry_of(u, now, ms, rows, e) <> rest
183    case None{}:
184      rest

Uses (9)

Used by (1)