def hub_of

ezx@1.11.0.0 · src/ledger/manifest.bend:437

import ezx@1.11.0.0/src/ledger/manifest.bend as Manifest
import Base

437# the hub of a ledger that was read. One that would not parse names none, and
438# so names bend's.
439def hub_of(ledger: Read) -> String:
440  match ledger:
441    case Bad{_why}:
442      hub.or("")
443    case Good{m}:
444      Manifest{_n, _e, _b, h, pa, pv, _ds, _ts} = m
445      hub.or(h)

Uses (4)

Used by (7)