On Github jamesward / intro-to-scala
activator new(or launch the UI from your file browser) Create a new app with the Hello, Scala template
activator run
activator ~run
activator console
activator ~test
val foo: String = "asdf"
val foo = "asdf"
val listOfInt: List[Int] = List(1,2,3)
case class Foo(name: String)
val foo = Foo("asdf") val foo1 = Foo.apply("asdf") val foo2 = new Foo("asdf") val bar = foo.copy("zxvc")
val asdf: Option[String] = Some("asdf")
val notta: Option[String] = None
def stringLength(s: String): Int = s.length
def stringTransformer(s: String, f: String => Int): Int = f(s)
List("a","bb","ccc").map(stringLength)
List("a","bb","ccc").map(s => s.length)