espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo] change in tcl list


From: Tristan Bereau
Subject: Re: [ESPResSo] change in tcl list
Date: Sat, 10 Apr 2010 09:09:06 -0400

Hi Samira,

Could you be more specific with the command you're using? Here's an example on how you can use lreplace (the '%' sign means it's an input lign):
% set var {a b c d e}
a b c d e
% set var [lreplace $var 1 1 z]
a z c d e

where in this example I've replaced the second element 'b' by 'z' in the 'var' list.

Best,
Tristan

On Apr 10, 2010, at 2:42 , samira jamalian wrote:

Dear all,

I want to change a single component of a tcl list. I have tried "lreplace" but it was not successful. Could you help me through this?

Many thanks,
Samira
_______________________________________________
ESPResSo mailing list
address@hidden
https://fias.uni-frankfurt.de/mailman/listinfo/espresso


reply via email to

[Prev in Thread] Current Thread [Next in Thread]