So I\'m trying to convert a binary to a string. This code:
t = [{<<71,0,69,0,84,0>>}] String.from_char_list(t)
But I\'m gettin
You can use Comprehensions
defmodule TestModule do def convert(binary) do for c <- binary, into: "", do: <> end end TestModule.convert([71,32,69,32,84,32]) |> IO.puts