Why does `inspect [i]` behavior vary for certain values below 128 and how can I prevent it?

Hi :wave: and welcome to the forum!

What you have encountered is a charlist. All that has changed is the representation of the data [7] == '\a', they’re just two different ways to write the same value. There’s some more info in the Elixir common gotchas page: My list of integers is printing as a string

7 Likes