Algorithm.dec_if: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/algorithm.bend as Algorithm Lines 166-171 of unified-nsga-iii@0.2.2.0/algorithm.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/algorithm.bend&start_line=166&end_line=171 import Base def dec_if(n: Nat, hit: Bool) -> Nat: match hit: case True{}: pred_or_zero(n) case False{}: n Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/algorithm.bend&name=pred_or_zero