Myers.peq_get: def of bend-edit-distance@0.2.2.0 Import: import bend-edit-distance@0.2.2.0/src/Myers.bend as Myers Lines 60-69 of bend-edit-distance@0.2.2.0/src/Myers.bend: https://jend.leeeet.dev/read.txt?path=bend-edit-distance@0.2.2.0/src/Myers.bend&start_line=60&end_line=69 import Base def peq_get(table: Peq, +code: U32, bit: Bool) -> U32: match table bit: case Mask{bits} _: bits case Branch{low, high} True{}: +next = U32.shr(code) peq_get(high, next, U32.is_ne(U32.and(next, 1), 0)) case Branch{low, high} False{}: +next = U32.shr(code) peq_get(low, next, U32.is_ne(U32.and(next, 1), 0)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_ne https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shr https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/src/Myers.bend&name=Peq