Scala Traits
Traits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then[…]
Read moreAmplify your java knowledge with javagyansite
Traits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then[…]
Read moreScala provides the ability to give parameters default values that can be used to allow a caller to omit those[…]
Read moreNamed Parameters When calling methods, we can label the arguments with their parameter names. Let us have a look into[…]
Read moreOne of the core values of functional programming is that functions should be first-class.The term indicates that they are not[…]
Read moreFunctions that accept other functions as parameters and/or use functions as return values are known as higher-order functions. In the[…]
Read moreOne good way to think about the Option is that it represents a container, more specifically a container that has[…]
Read moreMartin Odersky released the first version of Scala in 2004. Hybrid: Scala unites two worlds: object-oriented programming and functional programming.[…]
Read moreMetrics Scala Java When it started 2004 1995 Object Oriented/Functional Hybrid. Scala unites two worlds: object-oriented programming and functional[…]
Read moreScala’s match is counterpart of Java’s switch package com.scala.test object TestMatch { def checkMatch(i: Int): String = { val str[…]
Read moreval vs lazy val vs def val : evaluates as soon as you initialise the object and stores the result.[…]
Read more