<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Nodelists are not like arrays</title>
	<link>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays</link>
	<description>What happens at LShift</description>
	<pubDate>Fri, 21 Nov 2008 21:13:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>

	<item>
		<title>by: matthew</title>
		<link>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68352</link>
		<pubDate>Thu, 18 Oct 2007 08:35:33 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68352</guid>
					<description>&lt;p&gt;The issue with getting values or keys is solved, eg in lua, where you write:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;for (k, v) in pairs(t) do
    blah
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where t is a table (though pairs treats it as a map. Sorta).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The issue with getting values or keys is solved, eg in lua, where you write:</p>
<pre><code>for (k, v) in pairs(t) do
    blah
end
</code></pre>
<p>where t is a table (though pairs treats it as a map. Sorta).</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mikeb</title>
		<link>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68323</link>
		<pubDate>Wed, 17 Oct 2007 22:03:43 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68323</guid>
					<description>&lt;p&gt;MochiKit's forEac() and map() certainly play nicely with nodelists -- in fact I mostly use those, unless I need the keys as well, or to short-circuit.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>MochiKit&#8217;s forEac() and map() certainly play nicely with nodelists &#8212; in fact I mostly use those, unless I need the keys as well, or to short-circuit.</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tom Berger</title>
		<link>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68305</link>
		<pubDate>Wed, 17 Oct 2007 16:48:20 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2007/10/17/nodelists-are-not-like-arrays#comment-68305</guid>
					<description>&lt;p&gt;JS's for ... in notation is bong anyway. Whenever I try to use it I have to remind myself that it returns the keys and not the values. I always get it wrong the first time.&lt;/p&gt;

&lt;p&gt;I wonder how MochiKit's iter module handles node lists (or other platform libraries' equivalent, if they have something like that).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>JS&#8217;s for &#8230; in notation is bong anyway. Whenever I try to use it I have to remind myself that it returns the keys and not the values. I always get it wrong the first time.</p>
<p>I wonder how MochiKit&#8217;s iter module handles node lists (or other platform libraries&#8217; equivalent, if they have something like that).</p>
]]></content:encoded>
				</item>
</channel>
</rss>
