This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.1
A list zipper that can focus on the holes between items
version 1.1.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.1.0
Committed At 2018-03-18 20:20:48 UTC
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

README

Holey Zipper

Like a List zipper, but with more holes in it.

The basic idea is a zipper that can represent an empty list, can focus before and after every item, and doesn't make life hard.

import List.Holey.Zipper as Zipper

Zipper.empty           -- Zipper Hole a
    |> Zipper.plug 5   -- Zipper Full Int
    |> Zipper.append
        [ 1, 2, 3 ]    -- Zipper Full Int
    |> Zipper.nextHole -- Zipper Hole Int
    |> Zipper.toList   -- List Int
--> [ 5, 1, 2, 3 ]

So, there's that.


Made with love and released under BSD-3.