View Source Pathex.Short (Pathex v2.4.0)
This module provides short definitions of pathex paths.
For example, when using Pathex.Short
, you can transform this
path :x / :y / 1 / 2
To just this
:x / :y / 1 / 2
Link to this section Summary
Link to this section Functions
This macro redefines /
operator, so use this macro with caution
or only in bounded context (for example, you can use Pathex.Short
only
inside functions)
Example:
iex> use Pathex.Short
iex> path = :x / :y
iex> 1 = Pathex.view!(%{x: %{y: 1}}, path)