<div>Thanks.</div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">2008/8/9, Robert Virding <<a href="mailto:rvirding@gmail.com">rvirding@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">But remember you are not changing the element in the tuple, you are creating a new tuple which is a copy of the old one except for one new element. The old tuple is still available. N.B. you only make a copy of the top tuple not of its elements.<br>
<br>Robert<br><br>
<div class="gmail_quote">2008/8/9 Dave Smith <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dizzyd@gmail.com" target="_blank">dizzyd@gmail.com</a>></span> 
<div><span class="e" id="q_11ba828e3773ccfc_1"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">setelement/3 is the function you're looking for.<br><br>D.<br><br>2008/8/9 devdoer bird <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:devdoer2@gmail.com" target="_blank">devdoer2@gmail.com</a>>:<br>

<div>
<div></div>
<div>> HI:<br>><br>> I want to change a element  in one tuple,Eg. change the 3th element in tuple<br>> {a,b,c,e} to 'g',the result will be {a,b,g,e}.<br>> How can I do it?<br> </div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>_______________________________________________<br>erlang-questions mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></span></div>
</div><br> </div></blockquote></div><br>