Algorithm.offs_add2: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/algorithm.bend as Algorithm Lines 244-254 of unified-nsga-iii@0.2.2.0/algorithm.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/algorithm.bend&start_line=244&end_line=254 import Base import unified-nsga-iii@0.2.2.0/individual.bend as Ind def offs_add2( +need: Nat, acc: List<&2, Ind.Individual>, seen: List<&2, List<&2, F32>>, +elim: Bool, +c2: Ind.Individual, trip: List<&2, Ind.Individual> & List<&2, List<&2, F32>> & Bool ) -> Nat & List<&2, Ind.Individual> & List<&2, List<&2, F32>>: (acc1, seen1, hit1) = trip +need1 = dec_if(need, hit1) offs_add2.rest(need1, elim, c2, acc1, seen1, Nat.is_eq(need1, 0n)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/algorithm.bend&name=dec_if https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/algorithm.bend&name=offs_add2.rest https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=Individual