Generic.dbl: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Generic Lines 260-265 of bend-collections-laws-math@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/math/generic.bend&start_line=260&end_line=265 import Base import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N def dbl(~T: Data, ~op: N.Op -> T, c: Nat, +x: T) -> T: match c: case 0n: x case 1n+k: dbl(~T, ~op, k, op(N.Add{x, x})) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=Op