def dtlz1_scale
import unified-nsga-iii@0.2.2.0/problems.bend as Problemsimport Base
import unified-nsga-iii@0.2.2.0/util.bend as Util
340def dtlz1_scale(+body: F32, +x: List<&2, F32>, +idx: Nat, first: Bool) -> F32:
341 match first:
342 case True{}:
343 body
344 case False{}:
345 F32.mul(body, F32.sub(1.0, Util.get_f32(x, idx)))