ZipperEx.Zipable protocol (ZipperEx v0.1.0)
Zipable
protocol used by ZipperEx
.
See ZipperEx
for an example.
Link to this section Summary
Functions
Returns true
if the given node
is a branch.
Returns the children of the given node
.
Creates a node
from the given node
and children
.
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Link to this function
branch?(node)
Specs
branch?(ZipperEx.t()) :: boolean()
Returns true
if the given node
is a branch.
Link to this function
children(node)
Specs
children(ZipperEx.t()) :: [ZipperEx.tree()]
Returns the children of the given node
.
Link to this function
make_node(node, children)
Specs
make_node(ZipperEx.t(), [ZipperEx.tree()]) :: ZipperEx.t()
Creates a node
from the given node
and children
.