Sbx.start: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/sbx.bend as Sbx Lines 161-183 of unified-nsga-iii@0.2.2.0/sbx.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/sbx.bend&start_line=161&end_line=183 import Base import unified-nsga-iii@0.2.2.0/individual.bend as Ind import unified-nsga-iii@0.2.2.0/bounds.bend as Bounds import unified-nsga-iii@0.2.2.0/rng.bend as Rng def start( +eta: F32, +x1s: List<&2, F32>, +x2s: List<&2, F32>, +box: Bounds.Box, rng: Rng.State, +m: Nat, n: Nat ) -> Rng.State & Ind.Individual & Ind.Individual: match n: case 0n: (rng, Ind.from_variables(x1s, m), Ind.from_variables(x2s, m)) case 1n+f: +rng2 = Rng.next_double(rng) finish( m, loop( 1n+f, F32.is_gt(Rng.last_double(rng2), 0.5), close_heads(x1s, x2s), eta, x1s, x2s, Bounds.intervals_of(box), rng2, Nil{}, Nil{} ) ) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.is_gt 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=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/bounds.bend&name=Box https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/bounds.bend&name=intervals_of https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=Individual https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=from_variables https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/rng.bend&name=State https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/rng.bend&name=last_double https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/rng.bend&name=next_double https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/sbx.bend&name=close_heads https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/sbx.bend&name=finish https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/sbx.bend&name=loop