BendMlLlama.pair_sums: def of bend-ml-llama@0.2.1.0 Import: import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama Lines 365-371 of bend-ml-llama@0.2.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-llama@0.2.1.0/main.bend&start_line=365&end_line=371 import Base # adjacent pairs added: [a, b, c, d, e] -> [a + b, c + d, e] def pair_sums(xs: List<&2, F32>) -> List<&2, F32>: match xs: case Con{+a, Con{+b, t}}: (a + b : F32) <> pair_sums(t) case _: xs Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List