def bags_of.go

unified-nsga-iii@0.2.2.0 · survival.bend:768

import unified-nsga-iii@0.2.2.0/survival.bend as Survival
import Base
import unified-nsga-iii@0.2.2.0/util.bend as Util

768def bags_of.go(+counts: List<&2, Nat>, rows: List<&2, NRow>, +acc: List<&2, Bag>, +pos: Nat) -> List<&2, Bag>:
769  match rows:
770    case Nil{}:
771      acc
772    case +row <> rest:
773      bags_of.go(counts, rest, bag_put(acc, row, Util.get_nat(counts, nrow_r(row)), pos), 1n+pos)

Uses (7)

Used by (1)