Issue #2832 has been updated by marcandre (Marc-Andre Lafortune).

Status changed from Assigned to Closed

Right, let's close this.

I still think that Vector#map & select be covariant, and I'll change them if ever there's a request to second that.
----------------------------------------
Feature #2832: Vector#each and Enumerable
https://bugs.ruby-lang.org/issues/2832#change-33754

Author: marcandre (Marc-Andre Lafortune)
Status: Closed
Priority: Normal
Assignee: marcandre (Marc-Andre Lafortune)
Category: lib
Target version: next minor


=begin
 Vector should implement #each and include Enumerable, since it is so Array-like.
 
 Enumerable methods that return an array should probably be specialized to return a Vector (e.g. map, first, ...)
 
 See also [ruby-core:28403], [redmine:2831]
=end



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