def run.scan
import bend-parallel@0.1.0.0/sort.bend as Sortimport Base
import bend-parallel@0.1.0.0/scan.bend as Scan
364# Pass 2b's scan: offs becomes its exclusive scan.
365def run.scan(lo: Bool, +d: Nat, +e: Nat, +kb: Nat, +k: U32, ks: Array<U32>, pm: Array<U32>, r: Three) -> Array<U32> & Bufs:
366 Three{t, cs, os} = r
367 run.bases(lo, d, e, kb, k, ks, pm, cs, t, Scan.exclusive(d, os))