Advertisements

FunctionN

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. When you see the bytecode generated by the Scala compiler for Test, scala> :javap -c Test Compiled from “” public class Test Continue Reading

Advertisements
Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!