def stamp_front

unified-nsga-iii@0.2.2.0 · tournament.bend:191

import unified-nsga-iii@0.2.2.0/tournament.bend as Tournament
import Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind

191def stamp_front(idxs: List<&2, Nat>, +pop: List<&2, Ind.Individual>, +r: Nat) -> List<&2, Ind.Individual>:
192  match idxs:
193    case Nil{}:
194      pop
195    case +i <> rest:
196      stamp_front(rest, List.set(&2, Ind.Individual, pop, i, Ind.set_rank(get_ind(pop, i), r)), r)

Uses (6)

Used by (1)