Introduction


def foo(cond: Boolean)(bar: => String) = {  
lazy val lazyBar = bar
if (cond) lazyBar + lazyBar
else ""
}
foo(true){ // some computation ... }

def foo(cond: Boolean)(bar: => String) = { 
lazy val lazyBar = bar
if (cond) lazyBar + lazyBar
else ""
}
foo(true){ // some computation ... }

  • Strict evaluation, in which the arguments are evaluated before the function is applied. …

  • General information about Erlang
  • Basic data types
  • Functions and recursion
  • Modules
  • Pattern Matching

What is Erlang?


Course Syllabus

Week 1


What is Akka


Installation

libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test"
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.0</version>
<scope>test</scope>
</dependency>

Main improvements

  • Full support for Scala.js
  • Added async styles…

Books

  • Programming in Scala, 3rd edition by Martin Odersky, Lex Spoon, and Bill Venners — The most up to date book available at the moment. It captures the updates added in Scala 2.12. This book is perfect for beginners as most of the things are explained in depth. …

Tudor Zgureanu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store