def keep_if

unified-nsga-iii@0.2.2.0 · util.bend:73

import unified-nsga-iii@0.2.2.0/util.bend as Util
import 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

Uses (2)

Used by (4)