def sum_sq_half
import unified-nsga-iii@0.2.2.0/problems.bend as Problemsimport Base
250def sum_sq_half(xs: List<&2, F32>) -> F32:
251 match xs:
252 case Nil{}:
253 0.0
254 case h <> t:
255 F32.add(F32.square(F32.sub(h, 0.5)), sum_sq_half(t))