/elm-multiway-tree-zipper

A library for navigating and updating immutable trees. for elm 0.17

Primary LanguageElm

MultiwayTreeZipper

Fork for elm 0.17.

This library was created with the goal of allowing a multiway tree to be navigated and updated.

I ran into the problem when designing a tree UI control to use with The Elm Architecture. I realized that to keep track of the state in the model for things like whether a node is selected or expanded, I needed a way to update specific nodes through actions.

There will be more examples to come, but this is meant as a library to solve a piece of the puzzle, which will be used with others to create a Tree UI control

Useful commands

npm install elm -g
npm install elm-test -g
elm-test TestRunner.elm -c elm-make.cmd

The commands do the following:

  • Install elm (version 0.16 is what I'm using)
  • Install elm-test
  • Run elm-test pointing at elm-make.cmd instead of just elm-make because it doesn't work for windows.