def contacts_of_head
import bend-prot@0.1.0.0/topology.bend as Topologyimport Base
import bend-prot@0.1.0.0/protein.bend as P
85def contacts_of_head(h: P.Atom, +ys: List<&2, P.Atom>, +c2: F32) -> Nat:
86 match h:
87 case P.Atom{serial, elem, +pos}:
88 count_below(ys, pos, c2)