I have the following Elixir script:
a = [1, 2]
b = [a | 3]
IO.puts is_list(b)
IO.inspect b
I thought that my code b = [a | 3]
was wrong and this would cause an error.
But when I run this script, I got this result:
true
[[1, 2] | 3]
What means the pipe character within the last line of output?