This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
An infinite Zipper.
version 2.0.1
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.1.0
Committed At 2017-04-30 17:47:51 UTC
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1



An infinite zipper list that will always focus on an element. Once a zipper is initialized, you can move backwards and forwards and the zipper will circle around once it passes an end focus.

When the cursor is at the end of the list, right will return focus to the front of the list.
When the cursor is at the beginning of the list, previous will return focus to the end of the list.

As an example:

  InfiniteZipper.fromListWithDefault 4 [1, 2, 3]  
    |> InfiniteZipper.current  
    -- 1