Traits
trait Cloneable {
def clone(): Unit
}
Case Classes
case class User(id: Int, name: String)
Pattern Match
x match {
case 1 => "one"
case _ => "other"
}
Implicits
implicit val timeout = 10
Collections
val list = List(1, 2, 3)
list.map(_ * 2)
Futures
val f = Future { doTask() }