Back2Basics: Demystifying Eta Expansion

Reading Time: 4 minutes In this blog, we will talk about eta expansion in Scala. How they behave under the hood before and after Scala version 2.12. Scala has both methods and functions in Scala. We refer them interchangeably but there are situations where the difference matters. class Test { val isEvn = (x: Int) => x % 2 == 0 def isEven(x: Int) = x % 2 == Continue Reading