def has_close
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
37def has_close(xs: List<&2, P.Atom>, +qp: G.Vec3, +min2: F32) -> Bool:
38 match xs:
39 case Nil{}:
40 False{}
41 case h <> t:
42 Bool.or(has_close(t, qp, min2), head_is_close(h, qp, min2))