def keep_if
import unified-nsga-iii@0.2.2.0/util.bend as Utilimport Base
73def keep_if(-A: Data, +h: A, rest: List<&2, A>, keep: Bool) -> List<&2, A>:
74 match keep:
75 case True{}:
76 h <> rest
77 case False{}:
78 rest
import unified-nsga-iii@0.2.2.0/util.bend as Utilimport Base
73def keep_if(-A: Data, +h: A, rest: List<&2, A>, keep: Bool) -> List<&2, A>:
74 match keep:
75 case True{}:
76 h <> rest
77 case False{}:
78 rest