<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A Ruby reject! that returns the rejected items</title>
	<atom:link href="http://thelucid.com/2007/07/25/a-ruby-reject-that-returns-the-rejected-items/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelucid.com/2007/07/25/a-ruby-reject-that-returns-the-rejected-items/</link>
	<description>The Lightweight Ramblings of Jamie Hill</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:06:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: stellard</title>
		<link>http://thelucid.com/2007/07/25/a-ruby-reject-that-returns-the-rejected-items/comment-page-1/#comment-4148</link>
		<dc:creator>stellard</dc:creator>
		<pubDate>Mon, 30 May 2011 00:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://76591e7d-a15e-45ac-a512-a0548e18e88d#comment-4148</guid>
		<description>The array variation could look something like this

class Array

	def extract!
		[].tap{&#124;rejected&#124; delete_if { &#124;v&#124; yield(v) &amp;&amp; rejected &lt;&lt; v }}
	end

end</description>
		<content:encoded><![CDATA[<p>The array variation could look something like this</p>
<p>class Array</p>
<p>	def extract!<br />
		[].tap{|rejected| delete_if { |v| yield(v) &#038;&#038; rejected << v }}<br />
	end</p>
<p>end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

