Fox.ListExt
SourceSummary
head(xs) | returns everything except the last member of a list |
tail(list) | returns everything except the first member of a list |
Functions
Specs:
returns everything except the last member of a list
Examples
iex> [1,2,3] |> head
[1,2]
iex> [] |> head
[]
Specs:
returns everything except the first member of a list
Examples
iex> [1,2,3] |> tail
[2,3]