String.split vs Enum.split_with

You can just pipe the chunk_by result like this: |> Enum.reject(&1 == [0])?