My english is not so good so I hope I understand it right (please correct me if I am wrong). If it is about using take/drop_every explicitly - I think name like split_evenly can be more describing in long pipes like 123 |> Integer.digits() |> Enum.split_evenly |> Tuple.to_list() |> Enum.map(&Enum.sum/1) than 3-line function, to me it is faster to understand what is going on. But as I mentioned in PR I am new to Elixir and dont know much about Elixir style (paradigm, patterns, common way to write code) so I can be wrong about doing it an another function.
четверг, 16 декабря 2021 г. в 01:45:52 UTC+3, José Valim: