def adaptive_search.step

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

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

390def adaptive_search.step(distance: E.EditDistance, blocks: Nat, columns: Nat,
391                         attempts: Nat, retry: Unit -> Search) -> Search:
392  match distance:
393    case E.Found{value}:
394      Search{E.Found{value}, blocks, columns, attempts}
395    case E.NotFound{}:
396      retry(Unit{})

Uses (4)

Used by (1)