DynamicArray.pow2: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/dynamic_array.bend as DynamicArray Lines 35-41 of bend-collections@1.0.0.0/src/containers/dynamic_array.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/dynamic_array.bend&start_line=35&end_line=41 import Base # 2^d (structural doubling; Base Nat.pow is avoided, see docs/VALIDATION.md). def pow2(d: Nat) -> Nat: match d: case 0n: 1n case 1n+p: Nat.double(pow2(p)) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double