def tool.has
import ezx@1.11.0.0/src/ledger/manifest.bend as Manifestimport Base
484# whether the ledger pins a CLI of this name
485def tool.has(ts: List<&2, Tool>, +name: String) -> Bool:
486 match ts:
487 case []:
488 False{}
489 case +h <> t:
490 tool.step(String.eq(tool.name(h), name), _u => tool.has(t, name))