def find.pick

ezx@1.11.0.0 · src/ledger/manifest.bend:306

import ezx@1.11.0.0/src/ledger/manifest.bend as Manifest
import Base

306# this dependency when its name matches, otherwise whatever the rest gave
307def find.pick(hit: Bool, dependency: Dep, rest: Dep) -> Dep:
308  match hit:
309    case True{}:
310      dependency
311    case False{}:
312      rest

Uses (2)

Used by (1)