`Tuple.append` and perhaps `Tuple.prepend`

210 views
Skip to first unread message

Вячеслав Павлутин

unread,
Apr 10, 2015, 2:50:47 PM4/10/15
to elixir-l...@googlegroups.com
Erlang implements the following function :
append_element(tuple, term) :: tuple

It allows to add an element to the end of a tuple. I would like to implement it in Elixir for consistency with Erlang. In addition, it would be reasonable to implement `Tuple.prepend` as a counterpart so that the users who expect "interface couples" wouldn't be confused. Do we need the couple Tuple.append / Tuple.prepend in Elixir?

José Valim

unread,
Apr 10, 2015, 3:06:36 PM4/10/15
to elixir-l...@googlegroups.com
I am +1 for implementing append_element. I would skip prepend until there is a need as erlang itself does not provide one (afaik).



José Valim
Skype: jv.ptec
Founder and Lead Developer

--
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/a3bdcade-7ebc-4543-8102-8bd6c91e5cd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slava Pavlutin

unread,
Apr 10, 2015, 3:12:22 PM4/10/15
to elixir-l...@googlegroups.com, jose....@plataformatec.com.br
Will be done if you say so, Boss. :) 

José Valim

unread,
Apr 10, 2015, 3:15:06 PM4/10/15
to elixir-l...@googlegroups.com
Haha, thank you! <3



José Valim
Skype: jv.ptec
Founder and Lead Developer

Reply all
Reply to author
Forward
0 new messages