Skip to content

Instantly share code, notes, and snippets.

@jkup
Created October 13, 2016 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkup/5808e6541f0d060267734efe8b810493 to your computer and use it in GitHub Desktop.
Save jkup/5808e6541f0d060267734efe8b810493 to your computer and use it in GitHub Desktop.
Scala No Semicolons
object Foo {
def bar() {
println("no semicolons here!")
val xs = List(1, 2, 3, 4)
xs foreach println
def sumOfSquares(x: Int, y: Int) {
(x * x) + (y * y)
}
sumOfSquares(20, 20)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment