Type Gymnastics with Builder Pattern

scalabuildertypesseries

The Builder pattern provides a way to construct complex objects step by step with a fluent API, where each method call returns the builder itself, allowing for method chaining. Let us play some type …

Read more →

Understanding Contramap

scalacontramapfunctorfp

A contramap is defined as the converse of the map. I have never been satisfied with the definition. In this post, I will explain the concept in a way that is easy to internalize.

Read more →