15 16 17
# File 'lib/funkr/categories/monoid.rb', line 15 def mconcat(list) list.inject(mzero){|a,e| a.mplus(e)} end
11 12 13
# File 'lib/funkr/categories/monoid.rb', line 11 def mzero raise "Monoid#mzero not implemented" end