Vec.zip_with: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/vec.bend as Vec Lines 43-50 of bend-lawful-stdlib@0.1.0.0/src/vec.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/vec.bend&start_line=43&end_line=50 import Base def zip_with(~A: Data, ~B: Data, ~C: Data, ~f: A -> B -> C, n: Nat, xs: Vec(A, n), ys: Vec(B, n)) -> Vec(C, n): match n: case 0n: Unit{} case 1n+p: (x, xt) = xs (y, yt) = ys (f(x, y), zip_with(~A, ~B, ~C, ~f, p, xt, yt)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/vec.bend&name=Vec