Method: Mgmg::Mat#map_with_index!
- Defined in:
- lib/mgmg/utils.rb
#map_with_index! ⇒ Object
386 387 388 389 390 391 392 393 |
# File 'lib/mgmg/utils.rb', line 386 def map_with_index! @body.each.with_index do |row, i| row.map!.with_index do |e, j| yield(e, i, j) end end self end |