elixir - how to get all elements except last in the list? : <p>Let say I have a list <code>[1, 2, 3, 4]</code></p>

<p>How can I get all elements from this list except last? So, I'll have <code>[1, 2, 3]</code></p>
