I'm running the code below that adds the numbers in the list by 10. However, I am getting a list of chars.
result = Enum.map([1, 2, 3], fn x -> x + 10 end)
Result
\w\f\r
If I change from +
to *
the code works fine.
result = Enum.map([1, 2, 3], fn x -> x + 10 end)
which returns [10, 20, 30]
as expected.
However, the moment I change from 10 to 32, I also encounter a similar error which returns ' @'
Any idea what this means and how to fix it? Thanks