def min_link2
import bend-prot@0.1.0.0/topology.bend as Topologyimport Base
import bend-prot@0.1.0.0/protein.bend as P
138# Closest squared approach between two atom sets. None{} when either is empty.
139def min_link2(xs: List<&2, P.Atom>, +ys: List<&2, P.Atom>) -> Maybe<&2, F32>:
140 match xs:
141 case Nil{}:
142 None{}
143 case h <> t:
144 min_maybe(min_link2(t, ys), head_link(h, ys))