def base.one
import bend-parallel@0.1.0.0/sort.bend as Sortimport Base
import bend-parallel@0.1.0.0/histogram.bend as Hist
186# Column c of a group, when c < K: from its first slot offs[c] plus the
187# group's base, which its last row holds.
188def base.one(lt: Bool, +c: U32, +last: U32, +step: U32, +nm: Nat, p: Hist.Two) -> Hist.Two:
189 match lt:
190 case True{}:
191 Hist.Two{t, os} = p
192 base.os(c, last, step, nm, t, os[c])
193 case False{}:
194 p