APIdock / Ruby
/
method

map2

ruby latest stable - Class: Vector
map2(v)
public

Like Vector#collect2, but returns a Vector instead of an Array.

# File lib/matrix.rb, line 2040
 def map2(v, &block) # :yield: e1, e2
 return to_enum(:map2, v) unless block_given?
 els = collect2(v, &block)
 self.class.elements(els, false)
 end

AltStyle によって変換されたページ (->オリジナル) /