Elixir — Differences between hd and List.first
2 min readOct 13, 2017
A tip to BOOST your elixir coding…
To boost up your Elixir coding, you need to understand a few differences between these two even though they are used for the same purpose.
hd ( vs ) List.first [ diff…]
We all knew that hd
& List.first
are used to pick out the first
element in a list
. But, why two functions for…