<?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: Ruby Currying</title>
	<atom:link href="http://khelll.com/blog/ruby/ruby-currying/feed/" rel="self" type="application/rss+xml" />
	<link>http://khelll.com/blog/ruby/ruby-currying/</link>
	<description>Cool Web Development...</description>
	<lastBuildDate>Mon, 21 May 2012 00:25:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: curried function</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-8095</link>
		<dc:creator>curried function</dc:creator>
		<pubDate>Sun, 04 Apr 2010 15:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-8095</guid>
		<description>[...] transforms a function that has multiple arguments into a function which takes less arguments ...Ruby Currying - Khaled alHabache&#039;s official blogI would expect the curried&#039; function to have an arity of one. Also, is this currying or ... [...]</description>
		<content:encoded><![CDATA[<p>[...] transforms a function that has multiple arguments into a function which takes less arguments &#8230;Ruby Currying &#8211; Khaled alHabache&#39;s official blogI would expect the curried&#39; function to have an arity of one. Also, is this currying or &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 僕の考えたカリー化 &#171; **deadwinter**</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-6476</link>
		<dc:creator>僕の考えたカリー化 &#171; **deadwinter**</dc:creator>
		<pubDate>Thu, 14 Jan 2010 13:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-6476</guid>
		<description>[...]  http://www.khelll.com/blog/ruby/ruby-currying/ Check this function f which takes 3 params x,y,z  f(x,y,z) = 4*x+3*y+2*z [...]</description>
		<content:encoded><![CDATA[<p>[...]  <a href="http://www.khelll.com/blog/ruby/ruby-currying/" rel="nofollow">http://www.khelll.com/blog/ruby/ruby-currying/</a> Check this function f which takes 3 params x,y,z  f(x,y,z) = 4*x+3*y+2*z [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ara.t.howard</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2159</link>
		<dc:creator>ara.t.howard</dc:creator>
		<pubDate>Tue, 26 May 2009 16:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2159</guid>
		<description>the arity problem is easy to solve

  http://drawohara.com/post/113308029/ruby-a-curry-function-for-ruby

regards.

-a</description>
		<content:encoded><![CDATA[<p>the arity problem is easy to solve</p>
<p>  <a href="http://drawohara.com/post/113308029/ruby-a-curry-function-for-ruby" rel="nofollow">http://drawohara.com/post/113308029/ruby-a-curry-function-for-ruby</a></p>
<p>regards.</p>
<p>-a</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by gnupate</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2158</link>
		<dc:creator>Twitted by gnupate</dc:creator>
		<pubDate>Tue, 26 May 2009 16:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2158</guid>
		<description>[...] This post was Twitted by gnupate - Real-url.org [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by gnupate &#8211; Real-url.org [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khelll</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2146</link>
		<dc:creator>khelll</dc:creator>
		<pubDate>Mon, 25 May 2009 22:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2146</guid>
		<description>@Reg, as for the arity, i have tried that in Ruby 1.9 and got the same result -1, it&#039;s odd though.

As for the previous code, you are true, that&#039;s a partial function definition, not a currying one. I&#039;ll post a better snippet soon.</description>
		<content:encoded><![CDATA[<p>@Reg, as for the arity, i have tried that in Ruby 1.9 and got the same result -1, it&#8217;s odd though.</p>
<p>As for the previous code, you are true, that&#8217;s a partial function definition, not a currying one. I&#8217;ll post a better snippet soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reg Braithwaite</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2144</link>
		<dc:creator>Reg Braithwaite</dc:creator>
		<pubDate>Mon, 25 May 2009 20:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2144</guid>
		<description>The curry definitions given here mess with Proc#arity, don&#039;t they? In other words:

lambda { &#124;x,y&#124; x + y }.arity =&gt; 2

class Proc
 def curry(*p)
   lambda {&#124;*args&#124; self.call(*(p+args))}
 end
end

lambda { &#124;x,y&#124; x + y }.curry(1).arity =&gt; -1

I would expect the &#039;curried&#039; function to have an arity of one. Also, is this currying or partial application?</description>
		<content:encoded><![CDATA[<p>The curry definitions given here mess with Proc#arity, don&#8217;t they? In other words:</p>
<p>lambda { |x,y| x + y }.arity =&gt; 2</p>
<p>class Proc<br />
 def curry(*p)<br />
   lambda {|*args| self.call(*(p+args))}<br />
 end<br />
end</p>
<p>lambda { |x,y| x + y }.curry(1).arity =&gt; -1</p>
<p>I would expect the &#8216;curried&#8217; function to have an arity of one. Also, is this currying or partial application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khelll</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2142</link>
		<dc:creator>khelll</dc:creator>
		<pubDate>Mon, 25 May 2009 15:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2142</guid>
		<description>@Shalev, Thanks, the following one is more enhanced:

&lt;pre lang=&quot;ruby&quot;&gt;
class Proc
 def curry(*p)
   lambda {&#124;*args&#124; self.call(*(p+args))}
 end
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Shalev, Thanks, the following one is more enhanced:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#CC0066; font-weight:bold;">Proc</span>
 <span style="color:#9966CC; font-weight:bold;">def</span> curry<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">*</span><span style="color:#CC0066; font-weight:bold;">p</span><span style="color:#006600; font-weight:bold;">&#41;</span>
   <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|*</span>args<span style="color:#006600; font-weight:bold;">|</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">call</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">*</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0066; font-weight:bold;">p</span><span style="color:#006600; font-weight:bold;">+</span>args<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
 <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Shalev</title>
		<link>http://khelll.com/blog/ruby/ruby-currying/comment-page-1/#comment-2141</link>
		<dc:creator>Shalev</dc:creator>
		<pubDate>Mon, 25 May 2009 15:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=401#comment-2141</guid>
		<description>You can easily do this in Ruby 1.8 with:

&lt;code&gt;
class Proc
  def curry(arg)
    lambda {&#124;*args&#124; self.call(arg,*args)}
  end
end
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You can easily do this in Ruby 1.8 with:</p>
<p><code><br />
class Proc<br />
  def curry(arg)<br />
    lambda {|*args| self.call(arg,*args)}<br />
  end<br />
end<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

