ScalaTips·Feb 15, 2023Scala call-by-name vs call-by-valueScala supports two argument passing mechanisms.
ScalaTips·Feb 1, 2023Scala for-comprehensionFor-comprehensions in the Scala programming language provide a powerful and simple way to loop through data.
ScalaTips·Feb 1, 2023Scala EnumerationsEnumerations are a group of constants from the same type. Enumerated types are a type of container that bundles together enumerations of…
ScalaTips·Feb 1, 2023Scala ConstructorsConstructors are used to create objects. If you are coming from Java, like me, then constructors might have been a straightforward concept…
ScalaTips·Feb 1, 2023Scala TraitsTraits are similar to Java interfaces, and they are compiled into Java interfaces. But they are not exactly the same.