elixir-lang/elixir — pull request #1897 by gvaughn (2013-11-26 19:36:43+00:00)
Title: fix for issue #1896

If the enumerable is an even multiple of the counter (n) and an explicit
pad is given, you get an extra element.

Enum.chunks([1,2,3], 3)
iex> [[1,2,3]]
as expected, but

Enum.chunks([1,2,3], 3, 3, [""])
iex> [[1,2,3],[""]]
as not expected