def tpl_has_scan
import bend-prot@0.1.0.0/tpl.bend as Tplimport Base
21def tpl_has_scan(bs: List<&2, String>, +n1: String, +n2: String) -> Bool:
22 match bs:
23 case Nil{}:
24 False{}
25 case x <> Nil{}:
26 False{}
27 case x <> y <> t:
28 Bool.or(tpl_bond_match(n1, n2, x, y), tpl_has_scan(t, n1, n2))