All posts tagged


Lifting in Scala

Partial functions are widely used in Scala.

A Brief Story of flatMap

The function flatMap, in Scala, is basically a binding element (and also a functional combinator) in the language and key to understand some important concepts of functional programming, and in this blog article, I am going to introduce you some of these, which are heavily based on flatMap.

Scala Companion Objects

It’s a very common approach to create new objects using factory methods in object-oriented programming as it is in Java.