kudzu-forest/elm-zipper-pull/3.0.0

NOTE: the latest version is 5.0.0

ZipperPull

This library makes it easier to attach an interface as a linear zipper to arbitrary data types, including ordinary records. In fact, no data collection type is defined in this package: the only function exposed here is create, which returns not the data itself, but a record containing handler functions to treat your data like a list zipper. Thus, it is named ZipperPull, not Zipper itself. This idea (record-of-functions as an interface) comes from edkelly303/elm-any-type-collections.

Example

Living example in Ellie is given in here and here.