Module: Funkr::Categories::Monoid::ClassMethods

Defined in:
lib/funkr/categories/monoid.rb

Instance Method Summary collapse

Instance Method Details

#mconcat(list) ⇒ Object



15
16
17
# File 'lib/funkr/categories/monoid.rb', line 15

def mconcat(list)
  list.inject(mzero){|a,e| a.mplus(e)}
end

#mzeroObject



11
12
13
# File 'lib/funkr/categories/monoid.rb', line 11

def mzero
  raise "Monoid#mzero not implemented"
end