[ruby-core:77674] [Ruby trunk Feature#12854] Proc#curry should return an instance of the class, not Proc

From: nobu@...
Date: 2016-10-20 02:13:23 UTC
List: ruby-core #77674
Issue #12854 has been updated by Nobuyoshi Nakada.

Tracker changed from Bug to Feature

----------------------------------------
Feature #12854: Proc#curry should return an instance of the class, not Proc
https://bugs.ruby-lang.org/issues/12854#change-60957

* Author: Ryan Davis
* Status: Feedback
* Priority: Normal
* Assignee: 
----------------------------------------
~~~ ruby
class ChainedProc < Proc
end

ChainedProc.new { |x, y, z| 42 }.curry.class # => Proc
~~~




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next