Elixir Pick Out Elements In List

[Solved] Elixir Pick Out Elements In List | Elixir - Code Explorer | yomemimo.com
Question : elixir pick out elements in list

Answered by : nguyen-quang-huy

iex> [first | [second | [third | [ fourth | _rest ]]]] = [1, 2, 3, 4, 5, 6, 7]
[1, 2, 3, 4, 5, 6, 7]
iex> first
1
iex> {second, third, fourth}
{2, 3, 4}

Source : | Last Update : Wed, 01 Jun 22

Answers related to elixir pick out elements in list

Code Explorer Popular Question For Elixir