def sort

unified-nsga-iii@0.2.2.0 · non_dominated_sort.bend:270

import unified-nsga-iii@0.2.2.0/non_dominated_sort.bend as NonDominatedSort
import Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind
import unified-nsga-iii@0.2.2.0/util.bend as Util

270def sort(population: List<&2, Ind.Individual>) -> List<&2, List<&2, Nat>>:
271  match population:
272    case Nil{}:
273      Nil{}
274    case +h <> +t:
275      +rs = rows_of.go({h <> t : List<&2, Ind.Individual>}, 0n)
276      peel(Util.list_len(Row, rs), rs)

Uses (7)

Used by (6)