def attr.find.go

gralha-xml-doc@0.1.0.1 · xml.bend:294

import gralha-xml-doc@0.1.0.1/xml.bend as Xml
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

294def attr.find.go(hit: Bool, v: String, t: List<&2, Attr>, +key: String) -> Maybe<&2, String>:
295  match hit:
296    case True{}: Some{v}
297    case False{}:
298      match t:
299        case Nil{}: None{}
300        case Con{Attr{k2, v2}, t2}: attr.find.go(U.string.equal(k2, key), v2, t2, key)

Uses (6)

Used by (1)