HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
441 stars 77 forks source link

Add bulk attribute setter operator #226

Open ggreif opened 6 years ago

ggreif commented 6 years ago

This allows us to write

SVG.marker #=
    [ (SVG.id, "arrow")
    , (SVG.viewBox, "0 0 10 10")
    , (SVG.refx, "5")
    , (SVG.refy, "5")
    , (SVG.markerWidth, "6")
    , (SVG.markerHeight, "6")
    , (SVG.orient, "auto")]
           #+ [SVG.path # set SVG.d "M0 0L10 5L0 10z"]

Importantly, the attribute list can come from any Foldable container.

Stuff to check: