Elixir — Differences between hd and List.first

Malreddy Ankanna
2 min readOct 13, 2017

A tip to BOOST your elixir coding…

image credits: canva.com

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…

--

--

Malreddy Ankanna

Programmer & Writer, I write about coding, thoughts, ideas, personal musings, technical articles, and tutorials.https://bio.link/blackode