Adding to the previous answer, IO.inspect can print an arbitrary elixir member with an optional keyword list containing label: and the values ββfor initializing Inspect.Opts struct:
@spec inspect(item, Keyword.t) :: item when item: var
IO.puts requires the argument to be either a string or a structure that implements the String.Chars protocol:
@spec puts(device, chardata | String.Chars.t) :: :ok
source share