[erlang-questions] beginner:how to change a tuple's element

Dave Smith <>
Sat Aug 9 16:31:31 CEST 2008


setelement/3 is the function you're looking for.

D.

2008/8/9 devdoer bird <>:
> HI:
>
> I want to change a element  in one tuple,Eg. change the 3th element in tuple
> {a,b,c,e} to 'g',the result will be {a,b,g,e}.
> How can I do it?
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list