This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
A nonempty list in which exactly one element is always selected.
version 1.0.0
license BSD-3-Clause
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2018-07-15 03:57:22 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

SelectList

A SelectList is a nonempty list which always has exactly one element selected.

It is an example of a list zipper.

myList =
    SelectList.fromLists [ 1, 2 ] 3 [ 4, 5, 6 ]

SelectList.before myList
--> [ 1, 2 ]

SelectList.after myList
--> [ 3, 4, 5 ]

SelectList.selected myList
--> 3