def tool.find.pick

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

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

456# this tool when its name matches, otherwise whatever the rest gave
457def tool.find.pick(hit: Bool, pin: Tool, rest: Tool) -> Tool:
458  match hit:
459    case True{}:
460      pin
461    case False{}:
462      rest

Uses (2)

Used by (1)