View Source Pathex.Debug (Pathex v2.6.0)

Special lens which logs all operation and performs the same way matching(_) does

Summary

Functions

Works like matching(_) lens, but also prints out debugging information with prefix.

Functions

@spec debug(String.t()) :: Pathex.t()

Works like matching(_) lens, but also prints out debugging information with prefix.

Example

iex> p = path(1) ~> debug("debug()> ") iex> view! %{1 => 2}, p debug()> Called view on 2 2