Hi Masynchin, Thank you for the PR!
I think this case can be conveniently done with two traversals, using take_every/drop_every, as you showed, so that's what I propose people do. If the code is very performance oriented, then custom recursion or a reduce loop with two lists as accumulators is the way to go. On Wed, Dec 15, 2021 at 11:37 PM Masynchin <banzur.badu...@gmail.com> wrote: > I think I done it wrong order, so there is link to PR with explanation of > when this function is helpful - > https://github.com/elixir-lang/elixir/pull/11491 > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/bd4d3e3a-7952-4eb3-80e3-c969a4035d6dn%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/bd4d3e3a-7952-4eb3-80e3-c969a4035d6dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LSJU1SyxkXsMPG4wNVK9oXcWJg%2Bzsdtr4G2mnqZfmwXA%40mail.gmail.com.