Module: Fr::Functor

Included in:
Monad
Defined in:
lib/fr/functor.rb

Instance Method Summary collapse

Instance Method Details

#void(f) ⇒ Object

Functor f => f a -> f ()



6
7
8
# File 'lib/fr/functor.rb', line 6

def void(f)
  map(lambda{|a| nil }, f)
end