From 7d90940d8c92cc94894dd2102353cd0d64f4c39f Mon Sep 17 00:00:00 2001 From: Scott Sauyet Date: Sat, 27 Feb 2016 21:52:38 -0500 Subject: [PATCH] Minor tweaks to monoid def --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index bea7af4..234591d 100644 --- a/readme.md +++ b/readme.md @@ -239,7 +239,7 @@ randIter.next(); // Each exectuion gives a random value, expression is evluated > A monoid is some data type and a two parameter function that "combines" two values of the type, where an identity value that does not affect the result of the function also exists. -The simplest monoid is numbers and addition: +One very simple monoid is numbers and addition: ```js 1 + 1; // 2 @@ -253,7 +253,7 @@ The data type is number and the function is `+`, the addition of two numbers. The identity value is `0` - adding `0` to any number will not change it. -For something to be a monoid, it's also required that the order of operations will not affect the result: +For something to be a monoid, it's also required that the grouping of operations will not affect the result: ```js 1 + (2 + 3) == (1 + 2) + 3; // true