I come from the land of PHP and JavaScript, with very little Ruby experience. I have seen quite a few posts around the interwebs introducing Elixir from a Rubyist's perspective but I haven't really seen any from a perspective I can relate to. The syntax of Elixir is kind of foreign to most people outside of Ruby-land, so I hope to help push people a little bit over the initial hump with some examples using PHP and JavaScript (ES2015) along with the Elixir examples.
My goal with this post is to help introduce the syntax as well as a shallow introduction to immutability and how we use recursion instead of loops.
If you have Elixir installed, you can paste or type examples into IEx (interactive elixir). Start IEx shell by just typing iex
into your terminal.