Enumerable#find_all and Enumerable#select should be aliases
-----------------------------------------------------------
Key: JRUBY-5603
URL: http://jira.codehaus.org/browse/JRUBY-5603
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6
Environment: jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15
f3b6154) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
Reporter: Daniel Berger
Priority: Minor
In MRI find_all and select are synonyms instead of aliases. However, they
*should* be aliases, and so far JRuby has taken that view, e.g. map and collect
are currently aliases in JRuby.
{noformat}
>jirb
irb(main):001:0> Enumerable.instance_method(:map) ==
Enumerable.instance_method(:collect)
=> true
irb(main):002:0> Enumerable.instance_method(:find_all) ==
Enumerable.instance_method(:select)
=> false
{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