4 ms·
Elixir includes IO.inspect[1], which prints a value and then returns it. It makes it easy to insert this function into a pipeline without disrupting the existin
by acdibble 5y ago
Elixir includes IO.inspect[1], which prints a value and then returns it. It makes it easy to insert this function into a pipeline without disrupting the existing logic[2].
[1] https://hexdocs.pm/elixir/1.12/IO.html#inspect/2 https://hexdocs.pm/elixir/1.12/IO.html#inspect/2
[2] https://elixir-lang.org/getting-started/debugging.html https://elixir-lang.org/getting-started/debugging.html