Method: FastMatrix::Matrix#collect
- Defined in:
- lib/matrix/matrix.rb
#collect ⇒ Object
110 111 112 113 114 115 116 |
# File 'lib/matrix/matrix.rb', line 110 def collect collected_rows = [] rows.each do |i| collected_rows.push(yield i) end collected_rows end |