As Elixir has the `hd` and `tl` functions, it'd be very useful to have a `init` and `last` functions as well. For example:
last: takes a list and returns its last element. iex> last [5,4,3,2,1] 1 init: takes a list and returns everything except its last element. iex> init [5,4,3,2,1] [5,4,3,2] -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/be7c8194-a041-440d-839f-dafd5f8ea876n%40googlegroups.com.
