def nrows_of.go
import unified-nsga-iii@0.2.2.0/survival.bend as Survivalimport Base
80def nrows_of.go(+asgs: List<&2, Assignment>, cand: List<&2, Nat>, acc: List<&2, NRow>) -> List<&2, NRow>:
81 match cand:
82 case Nil{}:
83 List.reverse(&2, NRow, acc)
84 case +i <> rest:
85 +a = get_asg(asgs, i)
86 nrows_of.go(asgs, rest, NRow{i, asg_ref(a), asg_dist(a)} <> acc)