def gen_loop
import unified-nsga-iii@0.2.2.0/algorithm.bend as Algorithmimport Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind
import unified-nsga-iii@0.2.2.0/problems.bend as Prob
496def gen_loop(fuel: Nat, hold: GHold, +prob: Prob.Problem, +cfg: Config) -> List<&2, Ind.Individual>:
497 match fuel hold:
498 case 0n h:
499 gen_pop(h)
500 case 1n+g h:
501 gen_loop(g, one_gen(prob, cfg, h), prob, cfg)