BendMlAutograd.nval: def of bend-ml-autograd@0.1.1.0 Import: import bend-ml-autograd@0.1.1.0/main.bend as BendMlAutograd Lines 29-39 of bend-ml-autograd@0.1.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-autograd@0.1.1.0/main.bend&start_line=29&end_line=39 import Base # value of the expression at x def nval(e: NE, +x: Nat) -> Nat: match e: case NCst{n}: n case NX{}: x case NAdd{a, b}: Nat.add(nval(a, x), nval(b, x)) case NMul{+a, +b}: Nat.mul(nval(a, x), nval(b, x)) 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=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=bend-ml-autograd@0.1.1.0/main.bend&name=NE