associativity

ScalaFP: Understanding Semigroups In Scala Pragmatically

Reading Time: 3 minutes In our previous post, we discussed semigroups according to mathematics and we conclude that semigroups have two properties called closure and associativity. But still, we have some questions like: How can we use semigroups by using Scala? Where do we require to use semigroups? First, let’s try to figure out, when and where we require semigroups in our code and during this we will automatically Continue Reading