I met some weird behaviour of this function:
Erlang/OTP 22 [erts-10.4.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Interactive Elixir (1.9.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
nil
iex(2)> Enum.chunk_every([1,2,3,4,5],2)
[[1, 2], [3, 4], [5]]
iex(3)> Enum.chunk_every([1,2,3,4,5,6,7,8,],2)
[[1, 2], [3, 4], [5, 6], '\a\b']
iex(4)> Enum.chunk_every([1,2,3,4,5,6,7,8,9,10,11],2)
[[1, 2], [3, 4], [5, 6], '\a\b', '\t\n', '\v']
iex(5)> Enum.chunk_every([1,2,3,4,5,6,7,8,9,10,11,14],2)
[[1, 2], [3, 4], [5, 6], '\a\b', '\t\n', [11, 14]]
iex(6)> Enum.chunk_every([1,2,3,4,5,6,7,8,9,10,11,12,1314],2)
[[1, 2], [3, 4], [5, 6], '\a\b', '\t\n', '\v\f', [1314]]
iex(7)> Enum.chunk_every([1,2,3,4,5,6,7,8,9,10,11,12,13,14],2)
[[1, 2], [3, 4], [5, 6], '\a\b', '\t\n', '\v\f', [13, 14]]
Why does it do like that? My OS is Xubuntu 18.04.