Report.counts_text: def of bend-visgraph@2.0.0.0 Import: import bend-visgraph@2.0.0.0/src/report.bend as Report Lines 90-97 of bend-visgraph@2.0.0.0/src/report.bend: https://jend.leeeet.dev/read.txt?path=bend-visgraph@2.0.0.0/src/report.bend&start_line=90&end_line=97 import Base def counts_text(f: Nat, +share: Bool, +n: U32, r: Array & U32, +k: U32, acc: String) -> String: match f: case 0n: (c, +v) = r count_line(U32.is_zero(v), share, k, v, n, acc) case 1n+q: (c, +v) = r counts_text(q, share, n, Array.get(U32, c, (k - 1 : U32)), (k - 1 : U32), count_line(U32.is_zero(v), share, k, v, n, acc)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_zero https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/src/report.bend&name=count_line