Chunking via Enum is behaving in a confusing manner. Here's the code I'm executing:
arr = [1,2,3,4,5,6,7]
out = Enum.chunk_every(arr, 3)
I'm expecting to get:
[[1, 2, 3], [4, 5, 6], [7]]
but what I'm actually getting is:
[[1, 2, 3], [4, 5, 6], '\a']
I don't understand what is happening to the [7] and even more confusing is the '\a' itself. I don't even know what that means in this context.
Additionally, if arr is [1,2,3,4,5,6,7,8]
I get [[1, 2, 3], [4, 5, 6], '\a\b']
Here's another mind-blower. if I set arr to [1,2,3,4,5,6,7,8,9]
(evenly divisible by 3) I get [[1, 2, 3], [4, 5, 6], '\a\b\t']