creativescala / doodle

Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
327 stars 75 forks source link

Implement `flatMap` for `Picture` #131

Closed noelwelsh closed 1 year ago

noelwelsh commented 1 year ago

Picture needs flatMap so you can actually do something useful with operations that produce value like the Size algebra. This in turn requires interleaved evaluation. I think this is possible, but will require a good chunk of the generic algebra backend. It could do with refactoring in any case.