--
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-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/d6ae0579-04d7-4a2c-944a-f7279c789004n%40googlegroups.com.
It seems to me that we already have something very similar to the
hypothetical `Enum.operation_by`.
Namely: for-comprehensions.
~Qqwy/W-M
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/e9c86716-82f5-4e44-9c75-799421de8836n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/dc587460-294e-484c-a8d9-42ba3a77cedan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LgK1CfzoxfOo-4G6jikMQLPBOZXWWgCLxgLhY4Ek6SUg%40mail.gmail.com.
That was my implementation; I don’t want Luca’s proposal to be tainted by the inefficient implementation I put in to try to understand the proposal.
While I understand that there's no `Enum.filter` written explicitly in the code, there's still this step of sort of filtering out, written one way or the other, which at high level looks like filtering e.g. the simplest example is this:```def count(enumerable, fun) do
reduce(enumerable, 0, fn entry, acc ->
if(fun.(entry), do: acc + 1, else: acc)
end)
end```
--
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-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/c3357aae-6d97-4480-89a4-b39787528af9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/deeab50c-b357-4f14-9070-f39b5cb212e8n%40googlegroups.com.