Zippy v0.0.1 Zippy.ZList

This module implements Zipper lists, that allow you to traverse them in two directions. The current element is not always the first one, and has a constant access time.

This module is a port of Fred Hebert’s “Zippers” library, under the MIT licence.

Summary

Types

t()

A Zipper list

Types

t()
t() :: {prev :: list, next :: list}

A Zipper list

Functions

current(arg)
current(Zippy.ZList.t) :: Zippy.ZList.t | nil
delete(arg)
from_list(l)
from_list(list) :: Zippy.ZList.t
insert(arg, value)
insert(Zippy.ZList.t, term) :: Zippy.ZList.t
new()
new() :: Zippy.ZList.t
next(arg)
next(Zippy.ZList.t) :: Zippy.ZList.t | nil
prev(arg)
prev(Zippy.ZList.t) :: Zippy.ZList.t | nil
replace(arg, value)
replace(Zippy.ZList.t, term) :: Zippy.ZList.t
to_list(arg)
to_list(Zippy.ZList.t) :: list