Introduction to functions in scala
Reading Time: 4 minutes A function is a group of statements that perform a certain task. Instead of writing the same code again and again for different inputs, we can simply make a function and call whenever required. Each function must perform a specific task. Difference between Functions & Methods A scala method is a part of a class that has a name, signature, bytecode, etc. whereas a function Continue Reading