Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`