Scala functional articles

Functional error handling in Scala

Checked exceptions don't exist in Scala. However thanks to functional data structures we can manipulate expected errors differently.

Continue Reading β†’

Closures in Scala

If you're reading this blog, you've certainly noticed its big interest for Apache Spark. One of first problems we encounter with this data processing framework is a "Task not serializable" error that is caused by a not serializable closure. In this post, outside of Spark's context, we'll focus on these specific functions.

Continue Reading β†’

Partial functions in Scala

Recently in this series about Scala features I covered the partially applied functions. At first glance we could think they are the same as partial functions. But it's not really true and this post will explain why.

Continue Reading β†’

Partially applied functions in Scala

In the occasion of the post about currying I mentioned shortly the existence of similar concept called partially applied functions. This idea will be explained in this post.

Continue Reading β†’

Currying in Scala

Scala is a hybrid language implementing both functional and object-oriented features. One of them that merits to be analyzed is currying.

Continue Reading β†’