Display a linear combination: Difference between revisions

→‎{{header|Elixir}}: String.lstrip -> trim_leading
(Restoring visibility of task description formulae (hidden from most browsers by under-tested cosmetic edits at 21:43, 10 July 2016))
(→‎{{header|Elixir}}: String.lstrip -> trim_leading)
Line 75:
 
=={{header|Elixir}}==
{{works with|Elixir|1.3}}
<lang elixir>defmodule Linear_combination do
def display(coeff) do
Line 86 ⟶ 87:
end
end)
|> String.lstriptrim_leading(?"+")
|> case do
"" -> IO.puts "0"
Anonymous user