Normalization.clamp_worst: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/normalization.bend as Normalization Lines 434-441 of unified-nsga-iii@0.2.2.0/normalization.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/normalization.bend&start_line=434&end_line=441 import Base def clamp_worst(nadir: List<&2, F32>, worst: List<&2, F32>) -> List<&2, F32>: match nadir worst: case Nil{} ws: Nil{} case ns Nil{}: ns case +n <> ns +w <> ws: Bool.pick(F32, F32.is_gt(n, w), w, n) <> clamp_worst(ns, ws) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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