A result type of after_fun
in Enum.chunk_while/4
is {:cont, chunk, acc} | {:cont, acc}
. But acc
is never used.
Why isn’t the result type {:cont, chunk} | :cont
?
5 Likes
A result type of after_fun
in Enum.chunk_while/4
is {:cont, chunk, acc} | {:cont, acc}
. But acc
is never used.
Why isn’t the result type {:cont, chunk} | :cont
?