def account.of.pick

cswap-bend-cli@0.1.0.0 · policy/usage.bend:248

import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usage
import Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T

248def account.of.pick(+hit: Bool, +a: T.Account, +rest: Maybe<&2, T.Account>) -> Maybe<&2, T.Account>:
249  match hit:
250    case True{}:
251      Some{a}
252    case False{}:
253      rest

Uses (3)

Used by (1)