Check.tab.count: def of bend-osdev-gf@0.1.1.0 Import: import bend-osdev-gf@0.1.1.0/check.bend as Check Lines 11-19 of bend-osdev-gf@0.1.1.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-gf@0.1.1.0/check.bend&start_line=11&end_line=19 import Base # The table path against the reference over every pair of bytes (and every # inverse): the number of disagreements. r is the table and its answer for # (a, b). def tab.count(ok: Bool, bad: Nat) -> Nat: match ok: case True{}: bad case False{}: 1n+bad Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat