> Does this break that? Would this (contrived) example be valid?:
>
> for reduce {%{start: count}, sum} = {%{start: 0}, 0}, count < 100, i <-
> [1, 2, 3] do
>   {count + 1, i + sum}
> end
>

It depends. It is still a pattern match but an initial version would allow
only a subset of patterns. We should be able to relax it, but I don't want
to start with that so we can collect more feedback. And, to be clear, if we
do so, you should write:

for reduce {%{start: count}, sum} = {%{start: 0}, 0}, count < 100, i <- [1,
2, 3] do
  {%{start: count + 1}, i + sum}
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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BgDM-8sRNNe-mhXD5%2BHDCkdwRyfnU51Eudt3CwDZtK3w%40mail.gmail.com.

Reply via email to