I've been learning Elixir for awhile now but I came across something today that totally confused me.
I made this filtering function:
thingy = for a <- ["may", "lay", "45", "67", "bay", "34"], do: Integer.parse(a)
for {n, _} <- thingy, do: n
output: '-C"'
Completely unexpected output, yet the version below 'works'
parseds = for i <- [ "10", "hot dogs", "20" ], do: Integer.parse(i)
for {n, _} <- parseds, do: n
output: [10, 20]
However if I change the numbers to something like 45 and 65 I get '-A'
as the result.
Is this just the underlying binary functions permitting me from using which numbers I like?