def normalize_nd
import unified-nsga-iii@0.2.2.0/normalization.bend as Normalizationimport Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind
645# Public normalize stays the all-member hyperplane. `Laws.normalize_len`
646# unfolds this function. Constrained Run uses `normalize_nd_cv`.
647def normalize_nd(state: State, +pop: List<&2, Ind.Individual>, nd: List<&2, Nat>) -> State & List<&2, List<&2, F32>>:
648 match pop:
649 case Nil{}:
650 (state, Nil{})
651 case h <> t:
652 normalize_nd.go(state, h <> t, nd)