def hw_start_best

bend-edit-distance@0.2.2.0 · src/Myers.bend:591

import bend-edit-distance@0.2.2.0/src/Myers.bend as Myers
import 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}))

Uses (7)

Used by (1)