scala cats

ScalaFP: Let’s Start with Type Class

Reading Time: 2 minutes Before we start talking about the Functional Programming with the Scala Cats, we should refresh our memory about the Type Class and Implicit. These are the base when we start learning the Scala Cats. Let’s start the discussion with the Type Class. Type Class A type class is an interface or API that represents some functionality, which we want to implement. Type class is programming Continue Reading

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