def has_f32s

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

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

244def has_f32s(+needle: List<&2, F32>, xs: List<&2, List<&2, F32>>) -> Bool:
245  match xs:
246    case Nil{}:
247      False{}
248    case h <> t:
249      Bool.or(f32s_eq(needle, h), has_f32s(needle, t))

Uses (5)

Used by (1)