“If you combine two values of same type, you get another value of the same type.”
Given two inputs of the same type, a monoid returns one value of the same type as the input.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.