def lj_total_elem
import bend-prot@0.1.0.0/force.bend as Forceimport Base
import bend-prot@0.1.0.0/protein.bend as P
288def lj_total_elem(xs: List<&2, P.Atom>, +ys: List<&2, P.Atom>, +c2: F32) -> F32:
289 match xs:
290 case Nil{}:
291 0.0
292 case +h <> t:
293 (lj_total_elem(t, ys, c2) + lj_row_elem(P.Atom.elem(h), P.Atom.pos(h), ys, c2) : F32)