Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lovasoa/elm-nested-list
Nested lists and associated Json decoders and encoders for Elm.
https://github.com/lovasoa/elm-nested-list
datastructures elm json nested-objects
Last synced: 24 days ago
JSON representation
Nested lists and associated Json decoders and encoders for Elm.
- Host: GitHub
- URL: https://github.com/lovasoa/elm-nested-list
- Owner: lovasoa
- License: bsd-3-clause
- Created: 2017-03-05T21:15:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T23:26:58.000Z (almost 8 years ago)
- Last Synced: 2024-10-28T21:18:37.589Z (2 months ago)
- Topics: datastructures, elm, json, nested-objects
- Language: Elm
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lovasoa/elm-nested-list
[![Build Status](https://travis-ci.org/lovasoa/elm-nested-list.svg?branch=master)](https://travis-ci.org/lovasoa/elm-nested-list)
Nested lists (`[[1,2,[3]],4]`) in Elm.
## What does this do ?
This simple package allows handling nested lists in Elm.
It provides a type
```elm
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.## test
Just run `npm install && npm test`