def props.head.pick

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML

1991def props.head.pick(hit: Bool, +v: String, whole: List<&2, XML.Attr>, +key: String, +initial: String) -> String:
1992  match hit:
1993    case True{}: v
1994    case False{}: XML.attr.get(whole, key, initial)

Uses (5)

Used by (1)