def tools.without.put

ezx@1.11.0.0 · src/ws/joint.bend:127

import ezx@1.11.0.0/src/ws/joint.bend as Joint
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

127# a tool kept or dropped
128def tools.without.put(hit: Bool, pin: M.Tool, rest: List<&2, M.Tool>) -> List<&2, M.Tool>:
129  match hit:
130    case True{}:
131      rest
132    case False{}:
133      pin <> rest

Uses (3)

Used by (1)