Individual.sum_pos: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/individual.bend as Individual Lines 29-35 of unified-nsga-iii@0.2.2.0/individual.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&start_line=29&end_line=35 import Base # Sum of g_i where g_i > 0. Non-positive parts add nothing. def sum_pos(xs: List<&2, F32>) -> F32: match xs: case Nil{}: 0.0 case +h <> t: F32.add(pos_part(h), sum_pos(t)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=pos_part