def led.named

ezx@1.11.0.0 · src/pub/plan.bend:256

import ezx@1.11.0.0/src/pub/plan.bend as Plan
import Base

256# the entry, with the name the package goes under, or why it goes under none
257def led.named(+entry: String, got: Named) -> Led:
258  match got:
259    case ByHash{}:
260      Led{entry, ByHash{}}
261    case ByName{nv}:
262      Led{entry, ByName{nv}}
263    case Unnamed{why}:
264      LedNo{why}

Uses (3)

Used by (1)