Elixpath.PathComponent (elixpath v0.1.1)

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

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

descendant()

@type descendant() :: {Elixpath.Tag.descendant(), key()}
@type key() :: term()
@type 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.