Util.vec_dot: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/util.bend as Util Lines 174-183 of unified-nsga-iii@0.2.2.0/util.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/util.bend&start_line=174&end_line=183 import Base def vec_dot(a: List<&2, F32>, b: List<&2, F32>) -> F32: match a b: case Nil{} Nil{}: 0.0 case x <> xs y <> ys: F32.add(F32.mul(x, y), vec_dot(xs, ys)) case Nil{} y <> ys: 0.0 case x <> xs Nil{}: 0.0 Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List