def fwd.one

bend-parallel@0.1.0.0 · sort.bend:248

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

248# Column c, when c < K: its entries from its first slot offs[c].
249def fwd.one(lt: Bool, +c: U32, +kb: Nat, +nb: Nat, p: Hist.Two) -> Hist.Two:
250  match lt:
251    case True{}:
252      Hist.Two{t, os} = p
253      fwd.at(c, kb, nb, t, os[c])
254    case False{}:
255      p

Uses (6)

Used by (1)