Nth element of a Tuple

Eric Shun invisio22@REDACTED
Fri Apr 7 13:21:03 CEST 2006


I would like to write a function that replaces the Nth element of a tuple.
exemple:

replace(3,{a,b,c,d},a)   returns {a,b,a,c,d}

how can I do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060407/3696da78/attachment.htm>


More information about the erlang-questions mailing list