I\'m just starting out with Elixir. I\'m writing some tests using ExUnit for simple Enumerable functions that I am implementing myself, without using the standard Enum modul
While @Patrick's answer is absolutely correct, you can also configure IEx
to always display charlists
as regular lists instead of manually calling inspect
every single time:
iex> IEx.configure(inspect: [charlists: :as_lists])
# => :ok
iex> [65, 66, 67]
# => [65, 66, 67]
iex> 'ABC'
# => [65, 66, 67]
Here's a full list of supported options