Lists operations from right to left. Was this really needed?
BigSpaces
Posted on September 25, 2022
Today my little brain got one of the concepts that I wasn't quite getting.
What is this thing about Elixir evaluating operations from right to left when it comes to lists? I can hear José Valim giggle: "this is going to break a few brains, mwahahahahaha".
Ok, José, close call, but I got this one. Gimme something trickier.
I was initially confused by this:
WHAAAAAAAAAAAT thaaa
2?
But, but, one minus one is zero and two minus two is zero, so one and two minus one and minus two...
So I went back to Apples And Oranges. Sesame-Street my life.
Here is my genius achievement of the day. One more step to Elixir Everest.
Here is looking at you, José
git add .
git commit -m "I am sure there is a reason for this madness"
BigSpaces
Posted on September 25, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.