JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-5643

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

    Details

    • Number of attachments :
      0

      Description

      Note that 1.8 doesn't even return an enumerator.

      ~/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>
      

        Activity

        Hide
        Hiro Asari added a comment -

        Fixed in 20c3217.

        Show
        Hiro Asari added a comment - Fixed in 20c3217.

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Charles Oliver Nutter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: