def wrap_pair.go
import unified-nsga-iii@0.2.2.0/algorithm.bend as Algorithmimport Base
183def wrap_pair.go(+pair: Nat, in_range: Bool, last: Bool) -> Nat:
184 match in_range:
185 case True{}:
186 pair
187 case False{}:
188 wrap_pair.keep(pair, last)