Method: Array#apply

Defined in:
lib/funkr/extensions/array.rb

#apply(to) ⇒ Object



27
28
29
30
31
# File 'lib/funkr/extensions/array.rb', line 27

def apply(to)
  map do |f|
    to.map{ |t| f.call(t)}
  end.flatten(1)
end