<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Programming With Ruby Episode 7, Arrays</title>
	<atom:link href="http://manwithcode.com/119/programming-with-ruby-episode-7-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://manwithcode.com/119/programming-with-ruby-episode-7-arrays/</link>
	<description>Teaching You, One Tutorial at a Time</description>
	<lastBuildDate>Tue, 01 May 2012 18:55:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Tyler</title>
		<link>http://manwithcode.com/119/programming-with-ruby-episode-7-arrays/#comment-9295</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Thu, 09 Feb 2012 03:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://manwithcode.com/?p=119#comment-9295</guid>
		<description>The new array is the return value of the #collect method. Since we don&#039;t do much with that return value, the new array is simply displayed in IRB. To put this new array into a variable, we could just add something like:

&lt;code&gt;twice = numbers.collect do &#124;number&#124;
number*2
end&lt;/code&gt;

And then the variable twice would hold [2,4,6,8].

And indeed you are correct, I&#039;ll fix the transcript. Thanks for that! :)</description>
		<content:encoded><![CDATA[<p>The new array is the return value of the #collect method. Since we don&#8217;t do much with that return value, the new array is simply displayed in IRB. To put this new array into a variable, we could just add something like:</p>
<p><code>twice = numbers.collect do |number|<br />
number*2<br />
end</code></p>
<p>And then the variable twice would hold [2,4,6,8].</p>
<p>And indeed you are correct, I&#8217;ll fix the transcript. Thanks for that! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akash</title>
		<link>http://manwithcode.com/119/programming-with-ruby-episode-7-arrays/#comment-9226</link>
		<dc:creator>Akash</dc:creator>
		<pubDate>Fri, 03 Feb 2012 00:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://manwithcode.com/?p=119#comment-9226</guid>
		<description>A couple of questions and corrections.

When you do this:

numbers=[1,2,3,4]
numbers.collect do &#124;number&#124;
number*2
end

The output that is given is 2,4,6,8 which is fine. Where is this array stored though? The numbers array doesnt change, and &quot;number&quot; doesn&#039;t seem to be an array either.

Also you forgot to include &quot;.collect&quot; in the Transcript :)</description>
		<content:encoded><![CDATA[<p>A couple of questions and corrections.</p>
<p>When you do this:</p>
<p>numbers=[1,2,3,4]<br />
numbers.collect do |number|<br />
number*2<br />
end</p>
<p>The output that is given is 2,4,6,8 which is fine. Where is this array stored though? The numbers array doesnt change, and &#8220;number&#8221; doesn&#8217;t seem to be an array either.</p>
<p>Also you forgot to include &#8220;.collect&#8221; in the Transcript <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

