On the project of the company I currently work, we have a module helper, EnumHelpers, where we wrap helper functions to work with Enum, and we try to keep it as close as possible to the kernel version implementation. And EnumHelpers.take_and_count/2 is one of this function, where we use the current loop to count how many items were taking, removing the need to call `Enum.count` with the result of a previous `Enum.take` call. I'd like to propose this as a function from Enum module instead, as maybe some other devs also need to do the same sometimes.
-- 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 visit https://groups.google.com/d/msgid/elixir-lang-core/74a40bef-b755-41e3-9a26-08b7c47d7de1n%40googlegroups.com.