[erlang-questions] Replace list element

Wes James comptekki@REDACTED
Thu May 26 16:31:28 CEST 2011


One, option:

[A,B,C,D] = [1,2,3,4].

E=[A,C,B,D].

-wes

On Thu, May 26, 2011 at 8:26 AM, Alexander Kuleshov
<kuleshovmail@REDACTED> wrote:
> Hello,
>
> How can i fast replace 2 elements in Erlang list? For example I have
> list: [1,2,3,4], how can i quickly get [1,3,2,4]?
>
> Thank you.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list