def src.pick

ezx@1.11.0.0 · src/tool/plan.bend:123

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/ez/target.bend as Tgt

123# a name the ledger pins, or a free target
124def src.pick(free: Bool, +world: TW.World) -> Src:
125  match free:
126    case True{}:
127      Free{Tgt.classify(TW.target(world))}
128    case False{}:
129      pinned(TW.lock(world), TW.target(world))

Uses (7)

Used by (1)