Elixir uses square brackets for lists. The head of a list is the first element, and the tail contains the rest of the elements.
Share this post
Exploring Functions, Data Structures, and…
Share this post
Elixir uses square brackets for lists. The head of a list is the first element, and the tail contains the rest of the elements.