TGOlson / monoid

Simple monoid factory in JavaScript.
6 stars 1 forks source link

Prove monoid laws with tests #2

Open TGOlson opened 9 years ago

TGOlson commented 9 years ago

https://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Monoid.html

mappend mempty x = x
mappend x mempty = x
mappend x (mappend y z) = mappend (mappend x y) z
mconcat = foldr mappend mempty
dandananddada commented 8 years ago

That's a great idea~