def base.cols

bend-parallel@0.1.0.0 · sort.bend:196

import bend-parallel@0.1.0.0/sort.bend as Sort
import Base
import bend-parallel@0.1.0.0/histogram.bend as Hist

196# Columns c to c + n of a group.
197def base.cols(+n: Nat, +c: U32, +k: U32, +last: U32, +step: U32, +nm: Nat, p: Hist.Two) -> Hist.Two:
198  match n:
199    case 0n:
200      base.one(U32.is_lt(c, k), c, last, step, nm, p)
201    case 1n+q:
202      base.cols(q, (c + 1 : U32), k, last, step, nm, base.one(U32.is_lt(c, k), c, last, step, nm, p))

Uses (6)

Used by (1)