def gradient.has.stops

gralha-svg-render@0.1.0.1 · svg.bend:2102

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import 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)

Uses (5)

Used by (1)