MathSequence.get: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/math_sequence.bend as MathSequence Lines 46-57 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=46&end_line=57 import Base def get(-Element: Data,length: Nat,index: Index(length),vector: Values(Element,length)) -> Element: match length: case 0n: match index: case 1n+rest: match index: case First{}: Elements{head,tail} = vector head case Next{index}: Elements{head,tail} = vector get(Element,rest,index,tail) Uses (5): 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=Elements 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 https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/math_sequence.bend&name=Values