def has_other_close
import bend-prot@0.1.0.0/sasa.bend as Sasaimport Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P
29# Any atom but `skip` within rc2 of the sample point occludes it.
30def has_other_close(
31 xs: List<&2, P.Atom>, +pt: G.Vec3, +rc2: F32, +skip: U32
32) -> Bool:
33 match xs:
34 case Nil{}:
35 False{}
36 case h <> t:
37 Bool.or(has_other_close(t, pt, rc2, skip), occ_head(h, pt, rc2, skip))