[1.9] Array#map and Array#collect produce the same enumerator; should be 
specific to the method called
------------------------------------------------------------------------------------------------------

                 Key: JRUBY-5643
                 URL: http://jira.codehaus.org/browse/JRUBY-5643
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Ruby 1.9.2
    Affects Versions: JRuby 1.6
            Reporter: Charles Oliver Nutter
            Priority: Trivial


Note that 1.8 doesn't even return an enumerator.

{noformat}
~/projects/jruby ➔ jruby --1.9 -e "ary = []; p ary.map; p ary.collect"
#<Enumerator: []:collect>
#<Enumerator: []:collect>

~/projects/jruby &#10132; ruby1.9 -e "ary = []; p ary.map; p ary.collect"
#<Enumerator: []:map>
#<Enumerator: []:collect>
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to