--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Your function is called with (el, acc), not (acc, el).
1 - 0 = 1
2 - 1 = 1
3 - 1 = 2
4 - 2 = 2
And
4 - 0 = 4
3 - 4 = -1
2 - -1 = 3
1 - 3 = -2