<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/8082" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-08-09T12:10:40-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/8082</id>

		<entry>
		<author><name><![CDATA[QKill]]></name></author>
		<updated>2004-08-09T12:10:40-04:00</updated>

		<published>2004-08-09T12:10:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39639#p39639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39639#p39639"/>
		<title type="html"><![CDATA[How to use lreplace in nested lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39639#p39639"><![CDATA[
Thanks alot!<br><br>// Peter<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5297">QKill</a> — Mon Aug 09, 2004 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-09T11:18:42-04:00</updated>

		<published>2004-08-09T11:18:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39634#p39634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39634#p39634"/>
		<title type="html"><![CDATA[How to use lreplace in nested lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39634#p39634"><![CDATA[
use '<a href="http://tcl.tk/man/tcl8.5/TclCmd/lset.htm" class="postlink">lset</a>' if you're using one of the most recent versions of Tcl, if not, try this proc:<div class="codebox"><p>Code: </p><pre><code>proc lreplace2 {list path val} {set i [lindex $path 0]set path [lrange $path 1 end]if {[llength $path]} {lreplace $list $i $i [lreplace2 [lindex $list $i] $path $val]} {lreplace $list $i $i $val}}</code></pre></div><blockquote class="uncited"><div>% lreplace2 {{{0 1 2} {0 1 2}} 2} {0 1 0} Hey?<br>{{0 1 2} {Hey? 1 2}} 2</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Aug 09, 2004 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[QKill]]></name></author>
		<updated>2004-08-09T09:13:53-04:00</updated>

		<published>2004-08-09T09:13:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39629#p39629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39629#p39629"/>
		<title type="html"><![CDATA[How to use lreplace in nested lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39629#p39629"><![CDATA[
Hi,<br><br>how can i update an object in a nested list?<br><div class="codebox"><p>Code: </p><pre><code>set cal(0) [list {2} {2004-09-02} {19:00} {clame} {{{q3wcp14} {3} {14}} {{q3wcp17} {20} {1}}} {information} {5} {qkill} {blue} {tiny}]</code></pre></div>If i for example want to update the value q3wcp17 which is in the third level of the nested list. Can anyone help me?<br><br>Thanks!<br><br>// Peter<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5297">QKill</a> — Mon Aug 09, 2004 9:13 am</p><hr />
]]></content>
	</entry>
	</feed>
