def put.one

bend-parallel@0.1.0.0 · sort.bend:289

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

289# Key j, whose bucket's next slot is t[slot]: perm[that slot] <- j, and
290# the slot moves on.
291def put.one(+j: U32, +slot: U32, p: Hist.Two) -> Hist.Two:
292  Hist.Two{t, pm} = p
293  put.at(j, slot, pm, t[slot])

Uses (4)

Used by (1)