def account.of.pick
import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usageimport 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