I really enjoyed your Functionalist talk but I can’t get Drawing to work per your slides. Any hints?
Conversation
.last returns a value; you can't chain mutation like that.
var action = drawing.actions.last!
action.append()…
1
Ah of course. But then in your slide, how does projectedDrawing get the projectedSample? Remove last DrawAction and re-add?
2
Replying to
It's not so much "remove and readd": it's "construct a new drawing with a different array of actions". Think transform, not mutate.

