def hw_start_best
import bend-edit-distance@0.2.2.0/src/Myers.bend as Myersimport Base
import bend-edit-distance@0.2.2.0/EdlibTypes.bend as E
import bend-edit-distance@0.2.2.0/src/Alignment.bend as A
591def hw_start_best(+end: Nat, best: A.Best) -> A.Location:
592 match best:
593 case A.Best{_, locations}:
594 hw_start(end, Maybe.default(&2, A.Location,
595 List.last(&2, A.Location, locations), A.Location{E.BeforeStart{}, 0n}))