View Source Pathex.Short (Pathex v2.5.3)

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

Summary

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)

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)