<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>h6 - HatSix &#187; one-liners</title>
	<atom:link href="http://hat6.com/category/one-liners/feed/" rel="self" type="application/rss+xml" />
	<link>http://hat6.com</link>
	<description>Hat6 Web Application Engineering</description>
	<lastBuildDate>Fri, 12 Mar 2010 17:13:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>One-line Array Filtering</title>
		<link>http://hat6.com/2007/08/28/one-line-array-filtering/</link>
		<comments>http://hat6.com/2007/08/28/one-line-array-filtering/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 19:49:40 +0000</pubDate>
		<dc:creator>Dusty</dc:creator>
				<category><![CDATA[one-liners]]></category>

		<guid isPermaLink="false">http://hat6.com/2007/08/28/one-line-array-filtering/</guid>
		<description><![CDATA[I&#8217;m a fan of one-liners, and here&#8217;s an AWESOME one-line that saves a LOT of code, use this in a for each() for maximum fun.

someArray().filter(function(o:*, index:int, arr:Array):Boolean{return o.selected})

This makes looping through arrays and checking values quick and painless. You can also add in a .every() function on the end if you&#8217;re doing something simple, like [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a fan of one-liners, and here&#8217;s an AWESOME one-line that saves a LOT of code, use this in a for each() for maximum fun.</p>
<pre lang="actionscript">
someArray().filter(function(o:*, index:int, arr:Array):Boolean{return o.selected})
</pre>
<p>This makes looping through arrays and checking values quick and painless. You can also add in a .every() function on the end if you&#8217;re doing something simple, like tracing or logging (just remember to return false; in the every function).</p>
]]></content:encoded>
			<wfw:commentRss>http://hat6.com/2007/08/28/one-line-array-filtering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
