Elixpath.PathComponent (elixpath v0.1.0)

Path components to form an Elixpath. Defined as macros for use in guards and pattern matching.

Link to this section Summary

Functions

Child path component, e.g. Map/Keyword value or list element.

Descendant path component, recursively including children, grand-children, and so on.

Link to this section Types

Specs

child() :: {Elixpath.Tag.child(), key()}
Link to this type

descendant()

Specs

descendant() :: {Elixpath.Tag.descendant(), key()}

Specs

key() :: term()

Specs

t() :: child() | descendant()

Link to this section Functions

Link to this macro

child(x)

(macro)

Child path component, e.g. Map/Keyword value or list element.

Link to this macro

descendant(x)

(macro)

Descendant path component, recursively including children, grand-children, and so on.