Why can’t I chain String.replace?
EDIT On the master branch of Elixir, the compiler will warn if a function is piped into without parentheses if there are arguments. This is an issue of precedence that can be fixed with explicit brackets: price |> to_string |> String.replace(“.”, “,”) |> String.replace(~r/,(\d)$/, “,\\1 0″) |> String.replace(” “, “”) Because function calls have a … Read more