Update on Tea Trees



I have implemented an example on top of my tea-tree package, that is now at a level that is sufficient to demonstrate its purpose. Specifically that in Elm it is possible to have stale events (constructed from an older version of the Model before the current one) and this tree implementation lets you reference nodes in the tree by Paths which do not capture the stale state of the tree.


To run the example:

cd examples
# go to http://localhost:8000/index.html

Tree zippers cannot be used in events because they capture the state of the tree, and when there are stale events they overwrite the updates made with other zippers. I refer to the original discussion if you want to refresh yourself about it:


Also see this Ellie for a demonstration of how stale events can occur:


I am aiming to make this sunburst diagram behave like the one below. This will also be used to test how efficient the map operation is over the tree when it is used to implement an animation of the whole tree.



This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.