Module: Enumerable

Defined in:
lib/fmap.rb

Instance Method Summary collapse

Instance Method Details

#fmap(&bl) ⇒ Object



44
45
46
# File 'lib/fmap.rb', line 44

def fmap(&bl)
  bl.call( self.map{ |v| v.fmap(&bl) } )
end

#functor?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/fmap.rb', line 40

def functor?
  true
end