0

if I use this on a list of strings , I don't get any escape characters but with list of integers i do get escape characters.

 Enum.chunk_every([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],2)
//output
[[1, 2], [3, 4], [5, 6], '\a\b', '\t\n']
aditya
  • 66
  • 4
  • See here https://stackoverflow.com/questions/40324929/integer-list-printed-as-string-in-elixir - pipe the outpu through inspect `|> inspect(charlists: :as_lists)` – GavinBrelstaff Dec 29 '20 at 17:13
  • 1
    @GavinBrelstaff to use it globally, edit `~/.iex.exs` to include `IEx.configure(inspect: [charlists: :as_lists])`. To use it on per project basis, do this in `.iex.exs` on the top level of the mix project directory. – Aleksei Matiushkin Dec 29 '20 at 17:46

0 Answers0