def nd_mixed.go
import unified-nsga-iii@0.2.2.0/normalization.bend as Normalizationimport Base
578# ND indices restricted to feasible members. Empty or fully infeasible
579# fronts fall back to every feasible index (C# ExtremeIndices).
580def nd_mixed.go(nd: List<&2, Nat>, +pool: List<&2, Nat>) -> List<&2, Nat>:
581 match nd:
582 case Nil{}:
583 pool
584 case h <> t:
585 nd_mixed.use(pool, keep_in(h <> t, pool))