Hi,
Can anybody please explain me the next behaviour? Why with the integers list instead of 7 I am getting ‘\a’? Btw if I’ll add 8, 9, 10 etc it will be chars as well…
iex(88)> strings_list = ["a", "b", "c", "d", "e", "f", "g"]
["a", "b", "c", "d", "e", "f", "g"]
iex(89)> Enum.chunk(strings_list,2,2,[])
[["a", "b"], ["c", "d"], ["e", "f"], ["g"]]
iex(90)> integers_list = [1,2,3,4,5,6,7]
[1, 2, 3, 4, 5, 6, 7]
iex(91)> Enum.chunk(integers_list,2,2,[])
[[1, 2], [3, 4], [5, 6], '\a']