def wins_of

cswap-bend-cli@0.1.0.0 · tui/read.bend:71

import cswap-bend-cli@0.1.0.0/tui/read.bend as Read
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/tui/model.bend as M
import cswap-bend-cli@0.1.0.0/tui/num.bend as N

71# The windows of a lastGood object, in the reference's order: 5h, 7d, then the
72# per-model windows.
73def wins_of(+good: Json.Json) -> List<&2, M.Win>:
74  cons_win(win_key("5h", "five_hour", good), cons_win(win_key("7d", "seven_day", good), scoped(Json.to_list(N.get_or_null("scoped", good)))))

Uses (8)

Used by (1)