def min_link2

bend-prot@0.1.0.0 · topology.bend:138

import bend-prot@0.1.0.0/topology.bend as Topology
import 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))

Uses (6)

Used by (2)