Nested lists ([[1,2,[3]],4]
) in Elm.
This simple package allows handling nested lists in Elm.
It provides a type
type NestedList a
= Element a
| Nested (List (NestedList a))
as well as functions to work with this type, including a JSON encoder and a decoder.
Just run npm install && npm test