ReferenceDirections.to_dir: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/reference_directions.bend as ReferenceDirections Lines 37-42 of unified-nsga-iii@0.2.2.0/reference_directions.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/reference_directions.bend&start_line=37&end_line=42 import Base def to_dir(+p: Nat, comps: List<&2, Nat>) -> List<&2, F32>: match comps: case Nil{}: Nil{} case i <> rest: F32.div(F32.from_nat(i), F32.from_nat(p)) <> to_dir(p, rest) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat