Zippex v0.1.0 Zippex.Context View Source

The context of a Zipper. This module is used internally by Zippex and should not be accessed directly. The Context struct contains the following fields:

  • parent - The parent of the focus node (or nil)
  • ctx - The parent context (or nil)
  • left - A list of left siblings of the focus node
  • right - A list of right siblings of the focus node
  • dirty - true iff the focus node or any of it's children have been modified

Link to this section Summary

Functions

Returns the path to the focus node.

Link to this section Types

Link to this type

t()

View Source
t() :: %Zippex.Context{
  ctx: t() | nil,
  dirty: boolean(),
  left: [element()],
  parent: element() | nil,
  right: [element()]
}

Link to this section Functions

Link to this function

path(context, path)

View Source
path(t(), [element()]) :: [element()]

Returns the path to the focus node.