def active.of

cswap-bend-cli@0.1.0.0 · profile.bend:169

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

169def active.of(+m: Maybe<&2, Json.Json>) -> Maybe<&2, String>:
170  match m:
171    case Some{Json.JStr{s}}:
172      active.pick(String.is_empty(s), s)
173    case _:
174      None{}

Uses (5)

Used by (1)