def picks

ezx@1.11.0.0 · src/ws/workspace.bend:259

import ezx@1.11.0.0/src/ws/workspace.bend as Workspace
import Base

259# every ledger whose directory is a member, in the order git listed them
260def picks(+spec: Spec, ls: List<&2, Ledger>) -> List<&2, Ledger>:
261  match ls:
262    case []:
263      []
264    case +hd <> tl:
265      picks.put(chosen(spec, ledger.dir(hd)), hd, picks(spec, tl))

Uses (6)

Used by (3)