BendtorchLoad.two: def of bendtorch-load@1.3.0.0 Import: import bendtorch-load@1.3.0.0/main.bend as BendtorchLoad Lines 600-607 of bendtorch-load@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-load@1.3.0.0/main.bend&start_line=600&end_line=607 import Base import bendtorch@1.3.0.0/main.bend as T # A pair of parameters filled one after the other: the first piece's source array is released before the second is read def two(-P1: Type, -P2: Type, p: T.Two, k1: P1 -> IO(P1), k2: P2 -> IO(P2)) -> IO(T.Two): match p: case T.Two{a, b}: do IO>: x : P1 <- k1(a) y : P2 <- k2(b) return T.Two{x, y} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Two