Camellia.cam.gen: def of bend-osdev-camellia@0.1.0.0 Import: import bend-osdev-camellia@0.1.0.0/camellia.bend as Camellia Lines 42-48 of bend-osdev-camellia@0.1.0.0/camellia.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-camellia@0.1.0.0/camellia.bend&start_line=42&end_line=48 import Base # the entries of a table for x = i, i + 1, .., i + n - 1 def cam.gen(~f: U32 -> U32, n: Nat, +i: U32) -> List<&2, U32>: match n: case 0n: Nil{} case 1n+p: Con{f(i), cam.gen(~f, p, U32.add(i, 1))} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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