def lead_of

cswap-bend-cli@0.1.0.0 · daemon/walk.bend:66

import cswap-bend-cli@0.1.0.0/daemon/walk.bend as Walk
import Base
import cswap-bend-cli@0.1.0.0/daemon/tick.bend as Tk

66# The first decision's Out (its poll events), else the one at hand.
67def lead_of(t: Trail, +o: Tk.Out) -> Tk.Out:
68  match t:
69    case Trail{s, e, tr, Some{f}, sy}:
70      f
71    case _:
72      o

Uses (3)

Used by (5)