def block_pass

bend-visgraph@2.0.0.0 · visgraph.bend:322

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

322def block_pass(count: Nat, +s: U32, yr: Array<F32> & F32, lefts: Array<U32>, rights: Array<U32>) -> Local:
323  match count:
324    case 0n:
325      (ys, y) = yr
326      Local{Block{s, 0, UNil{}, KNil{}, 0.0}, Cols{ys, lefts, rights}}
327    case 1n+c:
328      (ys, +y) = yr
329      local(c, s, y, arrive(KNil{}, is_nan(y), y, s, rights, 0.0), Array.get(F32, ys, (s + 1 : U32)), lefts, s, 0, UNil{})

Uses (16)

Used by (2)