Testing Semigroups to Ensure They Abide by the Law of Associativity

InstructorThomas Greco

Share this video with your friends

Send Tweet

Semigroup Data Types provide users with a .concat function which must abide by the associative law. As a result of that, it doesn't matter how we append .concat as it will always produce the same result.

Fantasyland Docs - Semigroup