Survival.in_bin_count: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/survival.bend as Survival Lines 320-327 of unified-nsga-iii@0.2.2.0/survival.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/survival.bend&start_line=320&end_line=327 import Base import unified-nsga-iii@0.2.2.0/util.bend as Util # Assignments whose reference_index lands in a length-n histogram. # Out-of-range refs are silent no-ops in inc_at / List.set. def in_bin_count(asgs: List<&2, Assignment>, +n: Nat) -> Nat: match asgs: case Nil{}: 0n case +a <> rest: Nat.add(Util.bin_hit(asg_ref(a), n), in_bin_count(rest, n)) Uses (6): 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.add https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/survival.bend&name=Assignment https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/survival.bend&name=asg_ref https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/util.bend&name=bin_hit