Euclid.Sugar.returning
You're seeing just the function
returning
, go back to Euclid.Sugar module for more information.
Specs
Accepts two arguments and returns the second. Useful at the end of the pipeline when you want to return a different value than the last result of the pipeline, such as when the pipeline has side effects and you want to return a different value and you feel the code will be easier to read if everything is in a pipeline.
Examples
iex> %{} |> Map.put(:count, 20) |> Euclid.Sugar.returning(:count_updated)
:count_updated