Basic Constructs of Scala

Basic Constructs of Scala

Type Inference First thing to understand about Scala is that it is a Dynamically Typed Language which means that the data type of the values or variables are deduced at runtime. scala> val a = 10.0 a: Double = 10.0   Although it is dynamically types, you can still specify the datatype. scala> val b: Double = 10.0 b: Double = 10.0   Being dynamically […]

Read Me

Understanding Functional Programming with Scala

Understanding Functional Programming with Scala

Introduction Functional languages are those which treat functions as first class citizens. You can identify the validity of first class citizen status for function by checking the following aspects: 1. Can you assign a function to a value or a variable 2. Can you return a function from another function 3. Can you pass function as a parameter to another function Scala supports both Object […]

Read Me