def search_query

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

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

431def search_query(+query: String, target: String, +length: Nat, target_length: Nat,
432                 threshold: E.Threshold, pairs: List<&2, E.EqualityPair>,
433                 rejected: Bool) -> Search:
434  match rejected:
435    case True{}:
436      Search{E.NotFound{}, 0n, 0n, 0n}
437    case False{}:
438      search_profiles(target, build_peq(ceil_div(length, 32n), query, pairs), length, target_length, threshold)

Uses (11)

Used by (1)