def pick.slot.f

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

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

1109# Which property a key names, 0 for none, by its first letter then the name.
1110def pick.slot.f(+k: String) -> U32:
1111  U.choose(U32, U.string.equal(k, "fill"), 1, U.choose(U32, U.string.equal(k, "fill-opacity"), 4, U.choose(U32, U.string.equal(k, "fill-rule"), 7, 0)))

Uses (4)

Used by (1)