def gradient.has.stops
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-xml-doc@0.1.0.1/xml.bend as XML
2102def gradient.has.stops(xs: List<&2, XML.Element>) -> Bool:
2103 match xs:
2104 case Nil{}: False{}
2105 case Con{XML.Element{n, as, kids, txt}, rest}: U.string.equal(n, "stop") || gradient.has.stops(rest)