method
collect
ruby latest stable - Class:
Vector
collect()public
Like Array#collect.
# File lib/matrix.rb, line 2020
def collect(&block) # :yield: e
return to_enum(:collect) unless block_given?
els = @elements.collect(&block)
self.class.elements(els, false)
end