MathSequence.index_value: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/math_sequence.bend as MathSequence Lines 31-38 of stelliferous@0.0.2.0/math_sequence.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/math_sequence.bend&start_line=31&end_line=38 import Base def index_value(length: Nat,index: Index(length)) -> Nat: match length: case 0n: match index: case 1n+rest: match index: case First{}: 0n case Next{index}: 1n+index_value(rest,index) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/math_sequence.bend&name=Index https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/math_sequence.bend&name=Position