def min_dist2_to
import bend-prot@0.1.0.0/topology.bend as Topologyimport Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P
111# Closest squared distance from qp to any atom in xs. None{} when empty.
112def min_dist2_to(xs: List<&2, P.Atom>, +qp: G.Vec3) -> Maybe<&2, F32>:
113 match xs:
114 case Nil{}:
115 None{}
116 case h <> t:
117 min_cons(h, min_dist2_to(t, qp), qp)