Scan.in.go: def of bend-parallel@0.1.0.0 Import: import bend-parallel@0.1.0.0/scan.bend as Scan Lines 64-75 of bend-parallel@0.1.0.0/scan.bend: https://jend.leeeet.dev/read.txt?path=bend-parallel@0.1.0.0/scan.bend&start_line=64&end_line=75 import Base # As ex.go, but a[j] becomes the sum through it. def in.go(+n: Nat, +j: U32, +s: U32, r: Array & U32) -> Array & U32: match n: case 0n: (a, +x) = r +t = (s + x : U32) (a[j] <- t, t) case 1n+p: (a, +x) = r +q = (j + 1 : U32) +t = (s + x : U32) in.go(p, q, t, (a[j] <- t)[q]) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add