Histogram.col.go: def of bend-parallel@0.1.0.0 Import: import bend-parallel@0.1.0.0/histogram.bend as Histogram Lines 170-180 of bend-parallel@0.1.0.0/histogram.bend: https://jend.leeeet.dev/read.txt?path=bend-parallel@0.1.0.0/histogram.bend&start_line=170&end_line=180 import Base # r holds the table and the entry x read at at: adds x and the n entries # after it, each step further on, to s. def col.go(+n: Nat, +at: U32, +step: U32, +s: U32, r: Array & U32) -> Array & U32: match n: case 0n: (t, +x) = r (t, (s + x : U32)) case 1n+p: (t, +x) = r +q = (at + step : U32) col.go(p, q, step, (s + x : U32), t[q]) Uses (7): 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=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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add